#include <stdio.h>

#include "nx_secure_x509.h"

extern void    test_control_return(UINT status);
#if !defined(NX_SECURE_X509_DISABLE_CRL) && !defined(NX_SECURE_DISABLE_X509)
#include "tls_test_utility.h"

#define CN_TESTCA "TestCA"
#define CN_TESTINTM "TestIntm"

typedef struct
{
    const UCHAR *crl_data;
    UINT crl_data_length;
    NX_SECURE_X509_CERT *test_cert;
    UINT expected_status;
} BAD_CRL_TEST_DATA;

static const UCHAR TestCA_der[] = {
    0x30, 0x82, 0x03, 0x20, 0x30, 0x82, 0x02, 0x08, 0x02, 0x09, 0x00, 0xc0,
    0xbe, 0x29, 0xae, 0x89, 0x1b, 0xc9, 0xe5, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x1e,
    0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x32, 0x33, 0x33,
    0x31, 0x39, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32, 0x39, 0x30,
    0x32, 0x33, 0x33, 0x31, 0x39, 0x5a, 0x30, 0x52, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x06,
    0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82,
    0x01, 0x01, 0x00, 0xc3, 0x79, 0x72, 0xa4, 0xe2, 0xc6, 0xb7, 0x5d, 0x0f,
    0x41, 0x8c, 0x8e, 0xd1, 0x3c, 0xfd, 0x97, 0xf4, 0x8e, 0x82, 0x7e, 0x75,
    0xac, 0x4d, 0x85, 0xbb, 0xba, 0xe3, 0xd6, 0x22, 0xad, 0xc5, 0xc2, 0xd5,
    0x9d, 0x78, 0x1c, 0xab, 0x9c, 0x33, 0xb7, 0x95, 0x36, 0xcb, 0x63, 0x76,
    0x88, 0xc7, 0x3c, 0xa7, 0xf7, 0xfb, 0x84, 0x1d, 0x7c, 0xc5, 0x17, 0x25,
    0x5f, 0x1d, 0x41, 0xf3, 0x8c, 0xf9, 0x2f, 0x93, 0xab, 0xb2, 0x6b, 0x84,
    0xa9, 0x07, 0x70, 0xa1, 0xa0, 0xb3, 0xe0, 0x86, 0x5b, 0x5f, 0x4e, 0x0c,
    0x78, 0x7f, 0x20, 0x10, 0x12, 0x60, 0x13, 0x5c, 0xf8, 0x15, 0xe0, 0xc6,
    0xcb, 0xb2, 0x61, 0xe4, 0x78, 0x9d, 0xb8, 0x91, 0x60, 0x0f, 0xe6, 0xce,
    0xa4, 0x57, 0xa9, 0xb3, 0xb1, 0x9e, 0x3b, 0xc7, 0xf1, 0x66, 0x96, 0x23,
    0xf7, 0xe5, 0x40, 0xfa, 0xf6, 0x3a, 0xb9, 0x32, 0x64, 0xd0, 0x01, 0x14,
    0x31, 0x81, 0x3c, 0x3e, 0xf1, 0x9e, 0x64, 0x3d, 0xd0, 0x37, 0xee, 0xcd,
    0xf1, 0x82, 0x79, 0x3e, 0x08, 0x48, 0x2d, 0x2f, 0xa4, 0x5d, 0x41, 0xff,
    0x1f, 0xc1, 0x99, 0x26, 0x53, 0xb8, 0x7b, 0x59, 0xe5, 0x79, 0x9d, 0x25,
    0x2c, 0x35, 0xe6, 0x7b, 0x22, 0x02, 0x8c, 0x78, 0x05, 0xda, 0x90, 0x5d,
    0xbd, 0xd4, 0x53, 0xca, 0xa2, 0x73, 0xcc, 0xa0, 0xd7, 0x63, 0x3c, 0x22,
    0xe4, 0x2a, 0xb8, 0xc8, 0x5f, 0x58, 0x74, 0xce, 0x6c, 0x3b, 0xf3, 0x21,
    0x9a, 0xfa, 0xa0, 0x40, 0xc3, 0x10, 0x32, 0x46, 0xbb, 0x14, 0xff, 0xd6,
    0x1c, 0x41, 0x90, 0xb1, 0xb0, 0x0b, 0x59, 0x18, 0xaa, 0xfd, 0x43, 0x63,
    0x4b, 0x7c, 0xf1, 0x68, 0x1d, 0xa7, 0xed, 0x2c, 0x35, 0x11, 0xb8, 0xbc,
    0x02, 0x27, 0xc6, 0x39, 0x48, 0x62, 0x2b, 0xc1, 0xa9, 0x08, 0x53, 0x1f,
    0x7c, 0xdb, 0xa1, 0x6d, 0x41, 0x58, 0xc5, 0x02, 0x03, 0x01, 0x00, 0x01,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x3d, 0xa4, 0x36, 0xc9,
    0x9d, 0x91, 0xd1, 0x25, 0xe7, 0x41, 0x2c, 0x8d, 0xda, 0xcd, 0xb3, 0x8a,
    0x53, 0xe4, 0xee, 0x4f, 0x94, 0xa4, 0x84, 0xee, 0xaf, 0x06, 0x85, 0x6a,
    0xa6, 0x54, 0xe5, 0x8f, 0x12, 0xd3, 0x5e, 0x84, 0x33, 0x7a, 0x1d, 0x66,
    0x24, 0xb0, 0x9d, 0x94, 0x71, 0xad, 0x5b, 0x91, 0x6d, 0x06, 0xf3, 0x7b,
    0x41, 0x8f, 0x1a, 0x97, 0xa2, 0xe9, 0x52, 0x57, 0x2e, 0xfb, 0xaf, 0x1f,
    0xb7, 0xf9, 0x9c, 0xf8, 0xa9, 0xde, 0x4e, 0xdb, 0x92, 0x92, 0x94, 0xe0,
    0x06, 0x50, 0xfa, 0x76, 0x4f, 0x45, 0xeb, 0x8f, 0x60, 0x49, 0xeb, 0x98,
    0x32, 0x65, 0xb9, 0x85, 0xc4, 0x21, 0x81, 0xe3, 0x81, 0x33, 0x41, 0x45,
    0xc4, 0xbc, 0x3b, 0xda, 0x7a, 0x74, 0xe8, 0x4e, 0x3e, 0xc9, 0x39, 0xdf,
    0xdd, 0xa0, 0xb3, 0x49, 0x76, 0x58, 0x13, 0x46, 0x74, 0x66, 0x9e, 0xc1,
    0xbc, 0x6b, 0x37, 0xb8, 0x77, 0x6a, 0x8e, 0xf1, 0x6a, 0xad, 0xb4, 0x75,
    0x13, 0x1b, 0x2b, 0x3f, 0x62, 0x5e, 0xc7, 0x18, 0x6f, 0x65, 0xfa, 0x5c,
    0xc6, 0xb3, 0xf9, 0xa2, 0x83, 0xfa, 0x79, 0x50, 0xfa, 0xa8, 0xc8, 0xa7,
    0xc5, 0xeb, 0x7d, 0x4a, 0x27, 0x82, 0xe5, 0x09, 0xfb, 0x20, 0x06, 0x25,
    0x0a, 0x35, 0x4e, 0x43, 0x01, 0x2e, 0x09, 0x41, 0x8d, 0x1d, 0xf5, 0x4e,
    0x58, 0x72, 0x3c, 0x52, 0x34, 0x25, 0x64, 0xb6, 0xc5, 0x24, 0x9c, 0xd8,
    0xe4, 0xc9, 0xe6, 0xee, 0x23, 0xce, 0xa8, 0x1d, 0x46, 0xd0, 0xc8, 0xd6,
    0x8f, 0x27, 0xc1, 0x48, 0x66, 0x3d, 0x30, 0x7f, 0xf4, 0xf5, 0xd7, 0x81,
    0x3a, 0x62, 0x92, 0xbb, 0x9a, 0x66, 0x65, 0xaf, 0x27, 0x93, 0xd8, 0x63,
    0xfa, 0xa8, 0x3f, 0x14, 0x2e, 0xbd, 0xd2, 0x20, 0x30, 0x5b, 0x41, 0x6d,
    0x01, 0x07, 0x37, 0xe9, 0x9c, 0x8a, 0x07, 0xe3, 0x32, 0xb7, 0x68, 0xae
};

static const UCHAR TestCA_crl[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR TestCA2_crl[] = {
    0x30, 0x82, 0x01, 0xb7, 0x30, 0x81, 0xa0, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30, 0x53,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x32, 0x17,
    0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x35, 0x30, 0x37, 0x34, 0x39, 0x34,
    0x34, 0x5a, 0x17, 0x0d, 0x31, 0x39, 0x31, 0x31, 0x31, 0x35, 0x30, 0x37,
    0x34, 0x39, 0x34, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00,
    0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xfe, 0x17, 0x0d, 0x31, 0x37,
    0x31, 0x31, 0x31, 0x35, 0x30, 0x37, 0x34, 0x39, 0x32, 0x33, 0x5a, 0x30,
    0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05,
    0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x69, 0x71, 0xf8, 0x18, 0x4a,
    0xa1, 0x83, 0x00, 0x7f, 0xb7, 0x2f, 0xae, 0xc0, 0x6f, 0xc9, 0x41, 0x71,
    0x2f, 0xe3, 0xc2, 0xfa, 0x20, 0x4a, 0xd1, 0xf3, 0xff, 0x88, 0x13, 0xe3,
    0x55, 0xde, 0xd7, 0x79, 0x2e, 0xad, 0x7c, 0xb2, 0x67, 0x7c, 0x85, 0x02,
    0x86, 0x03, 0xa1, 0x38, 0xe9, 0x18, 0x24, 0xdc, 0xb6, 0x1d, 0x19, 0xb7,
    0x49, 0xf0, 0xcd, 0x7c, 0xfc, 0x98, 0x40, 0xb1, 0xa7, 0xf1, 0x57, 0xc4,
    0xf3, 0xa1, 0x1d, 0xf7, 0xa7, 0x1b, 0x3b, 0xc9, 0x00, 0x41, 0x75, 0xdf,
    0xd2, 0x9c, 0xa1, 0x92, 0xe1, 0xe5, 0x82, 0x3c, 0xc0, 0x05, 0xac, 0xe6,
    0xe7, 0xed, 0xcf, 0x55, 0x7d, 0x22, 0xa1, 0x51, 0x30, 0x4d, 0x9e, 0x80,
    0xba, 0x4f, 0x8e, 0x09, 0x57, 0xf2, 0x8d, 0x68, 0xbb, 0xdd, 0x98, 0xdf,
    0xa3, 0x0b, 0xd7, 0x2a, 0x95, 0xf3, 0xd4, 0xa8, 0x3a, 0x2c, 0xeb, 0x87,
    0x82, 0x7b, 0x18, 0x52, 0xb5, 0xf0, 0xd0, 0x2d, 0xf7, 0x85, 0xe3, 0x4e,
    0xad, 0x58, 0x2a, 0x3f, 0xfe, 0xba, 0x56, 0x4a, 0xf2, 0x18, 0xc8, 0x56,
    0x57, 0xaa, 0x23, 0x0f, 0x7c, 0x5a, 0xf4, 0x76, 0x0f, 0x6f, 0x60, 0x34,
    0xb4, 0x97, 0x47, 0x30, 0xa3, 0x7f, 0xe1, 0xb9, 0x02, 0xf6, 0xbe, 0xac,
    0x51, 0x7a, 0xfa, 0x50, 0xfd, 0xb0, 0x88, 0x69, 0x36, 0x9e, 0x96, 0xfc,
    0x0b, 0xc7, 0x55, 0x28, 0x9e, 0x59, 0x05, 0xc5, 0xbc, 0x43, 0x84, 0x61,
    0xa5, 0x5a, 0x31, 0x51, 0x9f, 0x56, 0x44, 0x8d, 0x12, 0x79, 0x88, 0x48,
    0xc3, 0x3d, 0x5a, 0xdc, 0x7c, 0x03, 0xab, 0x37, 0x4c, 0x2d, 0x9b, 0x3b,
    0x47, 0x4e, 0xec, 0x49, 0x56, 0x60, 0xd7, 0x95, 0x17, 0x42, 0x32, 0x7b,
    0x18, 0xc5, 0x03, 0x77, 0x7f, 0xe8, 0xab, 0xc4, 0xfb, 0xc6, 0xf1, 0x69,
    0xf9, 0xa7, 0x69, 0x59, 0xa5, 0xf6, 0x27, 0xae, 0x0f, 0x9a, 0x4f
};

static const UCHAR example_com_der[] = {
    0x30, 0x82, 0x03, 0x25, 0x30, 0x82, 0x02, 0x0d, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x54, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x1e,
    0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x37, 0x33, 0x37,
    0x35, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32, 0x39, 0x30,
    0x37, 0x33, 0x37, 0x35, 0x36, 0x5a, 0x30, 0x57, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x31, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0b,
    0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x30,
    0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
    0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30,
    0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xb5, 0xb8, 0x43, 0xe0,
    0x33, 0x31, 0x80, 0x31, 0xe6, 0x0d, 0x65, 0x84, 0x40, 0x34, 0xe1, 0xfb,
    0x69, 0xa6, 0x23, 0xbd, 0x35, 0xcd, 0xde, 0xbc, 0x0f, 0x1a, 0xd4, 0x27,
    0x44, 0xee, 0x03, 0xdf, 0xc5, 0xcc, 0x2c, 0x22, 0xda, 0xe1, 0x67, 0x3b,
    0x6b, 0xa1, 0xa9, 0x97, 0x93, 0xa1, 0x58, 0x1c, 0x23, 0x1b, 0x2c, 0xf0,
    0xd0, 0xee, 0x3f, 0x32, 0xbf, 0x23, 0x23, 0xf9, 0x22, 0x56, 0xa2, 0x1e,
    0x31, 0xfd, 0x22, 0x02, 0x9a, 0x12, 0x83, 0x2c, 0x34, 0xf4, 0x32, 0xf2,
    0xb4, 0x5f, 0x13, 0x77, 0x71, 0x49, 0x8f, 0xcb, 0x52, 0xb4, 0xf5, 0xd6,
    0xb2, 0xd5, 0xd6, 0x05, 0x92, 0x3d, 0x53, 0x85, 0x7d, 0x36, 0x5e, 0x4d,
    0xd4, 0x5d, 0xc0, 0xcd, 0x6d, 0xd8, 0xf3, 0xc8, 0x72, 0xa2, 0x4a, 0xf9,
    0x8b, 0x1a, 0x12, 0xa4, 0x89, 0xc2, 0xcd, 0x86, 0xf9, 0x50, 0x6c, 0xc6,
    0x37, 0x36, 0x3e, 0xeb, 0xb4, 0xb5, 0x7c, 0xda, 0x14, 0xf8, 0x05, 0x51,
    0x5c, 0x90, 0x13, 0xc2, 0xa8, 0x82, 0xac, 0x13, 0x8b, 0x29, 0x66, 0x4c,
    0x51, 0xde, 0xf4, 0x6f, 0xfc, 0x49, 0x95, 0x68, 0x36, 0xbc, 0x69, 0xe4,
    0xe0, 0xb9, 0xb7, 0x49, 0xcb, 0x99, 0x8c, 0x51, 0xc1, 0x82, 0x4b, 0x94,
    0xed, 0x83, 0x6e, 0xc8, 0xc6, 0x4c, 0x43, 0x47, 0x6d, 0x4f, 0xce, 0x10,
    0x54, 0x06, 0xd7, 0xa9, 0x2b, 0x29, 0x77, 0x53, 0xd3, 0xfb, 0xd3, 0x32,
    0xb9, 0x6d, 0x73, 0x22, 0x0d, 0xa8, 0xcd, 0x1a, 0xf9, 0x8e, 0x51, 0xeb,
    0x12, 0x37, 0xee, 0xc4, 0xe4, 0x21, 0xf6, 0x6a, 0x4e, 0x14, 0x9c, 0xcc,
    0xad, 0x02, 0xbe, 0x21, 0x99, 0x7d, 0x56, 0xd5, 0xb0, 0x13, 0x0e, 0x3c,
    0x0d, 0x6e, 0x8e, 0xb8, 0x3c, 0xb8, 0x5c, 0xff, 0x64, 0xe2, 0xf6, 0xd6,
    0xa7, 0x06, 0x03, 0x77, 0x0d, 0xe4, 0x5e, 0xe4, 0x50, 0x26, 0x28, 0x7f,
    0x02, 0x03, 0x01, 0x00, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01,
    0x00, 0x8d, 0xb7, 0xf9, 0x4f, 0xe3, 0x9b, 0x25, 0xdd, 0x49, 0x69, 0x37,
    0xae, 0xca, 0xd6, 0x18, 0x4a, 0x96, 0x63, 0x83, 0x9d, 0x3d, 0xec, 0xeb,
    0x62, 0x97, 0xeb, 0xfc, 0x91, 0x5f, 0xf4, 0x2b, 0x62, 0x39, 0x11, 0xd4,
    0xb7, 0x31, 0x75, 0x1b, 0x08, 0xda, 0x4e, 0xa4, 0xf8, 0x2c, 0x08, 0x61,
    0x80, 0x3e, 0x1d, 0x18, 0x72, 0x71, 0x9b, 0x78, 0xea, 0x12, 0x79, 0xa6,
    0x70, 0xc1, 0x40, 0x06, 0x26, 0xee, 0xaf, 0x26, 0xd7, 0xa2, 0x79, 0x32,
    0xfa, 0x4f, 0xcc, 0x9a, 0x1d, 0xb9, 0xdf, 0x57, 0x3c, 0x0f, 0x2c, 0x12,
    0x7b, 0xa7, 0x5f, 0xd3, 0x38, 0x40, 0x33, 0x8c, 0xfa, 0x16, 0x8f, 0x10,
    0xf0, 0xe3, 0x81, 0x35, 0x0d, 0x2e, 0x38, 0xd8, 0x82, 0x23, 0xa7, 0xdb,
    0x9e, 0x7c, 0x78, 0xb9, 0x6b, 0x52, 0xcc, 0x0d, 0x40, 0x22, 0xbf, 0x5d,
    0x15, 0x97, 0xcf, 0x8f, 0xf3, 0x38, 0x73, 0x25, 0x85, 0x5f, 0x07, 0xbd,
    0x11, 0x81, 0x03, 0x1f, 0xc0, 0x82, 0xe4, 0xcb, 0xaa, 0xe2, 0x3a, 0xa8,
    0x6b, 0x92, 0x41, 0xaa, 0xa1, 0xb6, 0xe1, 0x23, 0x44, 0xca, 0xcc, 0xa2,
    0x43, 0x5a, 0xc1, 0xae, 0x62, 0x32, 0x8d, 0x85, 0x64, 0xc3, 0x0c, 0x0c,
    0x38, 0x97, 0x47, 0x08, 0xbb, 0x25, 0x78, 0xc3, 0x8f, 0x38, 0xfe, 0x73,
    0x26, 0xf9, 0xec, 0x72, 0x5c, 0x14, 0xe3, 0xd7, 0x55, 0x5b, 0x6c, 0xf5,
    0x16, 0xb2, 0x15, 0xe7, 0x35, 0x54, 0x45, 0xbb, 0x8a, 0x75, 0xeb, 0x84,
    0xd5, 0xb7, 0xdd, 0xab, 0x65, 0xe9, 0x82, 0x6f, 0x4e, 0xd7, 0x11, 0x99,
    0x09, 0x83, 0x4c, 0x40, 0xd8, 0xde, 0x8e, 0x6f, 0xfe, 0xd2, 0x78, 0x70,
    0x17, 0x9d, 0x41, 0x0d, 0x50, 0xa2, 0x6a, 0xe4, 0xcc, 0xb3, 0xf9, 0x34,
    0x4a, 0x7f, 0x43, 0x2a, 0x48, 0x79, 0x74, 0xbc, 0xe9, 0x3d, 0x48, 0x37,
    0x76, 0xed, 0xd9, 0x7b, 0x80
};

static const UCHAR domain_com_der[] = {
    0x30, 0x82, 0x03, 0xfe, 0x30, 0x82, 0x02, 0xe6, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xe8, 0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x0b, 0x05, 0x00, 0x30, 0x52, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f,
    0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x30,
    0x39, 0x30, 0x39, 0x30, 0x35, 0x34, 0x32, 0x5a, 0x17, 0x0d, 0x32, 0x30,
    0x30, 0x38, 0x32, 0x39, 0x30, 0x39, 0x30, 0x35, 0x34, 0x32, 0x5a, 0x30,
    0x56, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02,
    0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07,
    0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x13, 0x30, 0x11, 0x06, 0x03,
    0x55, 0x04, 0x03, 0x0c, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e,
    0x63, 0x6f, 0x6d, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82,
    0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00,
    0xca, 0xda, 0xad, 0xb7, 0xf0, 0x38, 0xb4, 0xab, 0x57, 0x90, 0x7f, 0x17,
    0xc9, 0x27, 0x19, 0x3f, 0x38, 0x8b, 0xc4, 0x33, 0x48, 0x4e, 0x79, 0xe6,
    0x86, 0x0e, 0x9d, 0x80, 0xa1, 0xd1, 0x59, 0xf5, 0xcb, 0x00, 0x4b, 0x7a,
    0xb4, 0x2d, 0xdf, 0x1d, 0xc5, 0x88, 0x4f, 0x82, 0xf7, 0x5f, 0x88, 0x96,
    0xc0, 0xb7, 0xc6, 0x8e, 0x7b, 0x58, 0x89, 0xa8, 0xe5, 0x2d, 0xf6, 0x00,
    0xf5, 0xb7, 0x2d, 0x7e, 0x65, 0x0a, 0x93, 0x8b, 0x75, 0x4f, 0x2d, 0xec,
    0xb3, 0xc3, 0x42, 0xc5, 0x12, 0x0d, 0xb4, 0x5b, 0xe2, 0xd6, 0x37, 0x11,
    0x24, 0x1b, 0x80, 0x80, 0xe7, 0xf7, 0x5c, 0xb0, 0x32, 0x7c, 0xd0, 0x39,
    0x6a, 0x28, 0x79, 0x17, 0x60, 0xf0, 0x50, 0x7f, 0x8d, 0xaf, 0x8d, 0x13,
    0x11, 0xf4, 0x61, 0x1b, 0xb6, 0x49, 0x53, 0x17, 0x06, 0x76, 0x8a, 0xb3,
    0xe5, 0x38, 0xf0, 0xe8, 0x33, 0x25, 0x18, 0x7c, 0xf3, 0x03, 0x6c, 0x4b,
    0x48, 0x63, 0x2e, 0xe7, 0xa5, 0xe1, 0x39, 0x10, 0xcd, 0xc9, 0xdf, 0x4a,
    0x9e, 0x29, 0xcb, 0x4e, 0x75, 0x02, 0x0f, 0x28, 0xb1, 0x57, 0xf6, 0xd5,
    0x6f, 0x64, 0x23, 0xd5, 0xcb, 0xfd, 0x9d, 0x11, 0x96, 0xb4, 0x34, 0x99,
    0xe2, 0xaf, 0x8f, 0xe2, 0xd6, 0x31, 0xf2, 0x8a, 0x3a, 0x32, 0x6a, 0x91,
    0x8c, 0x3f, 0xdf, 0x49, 0xd9, 0xd0, 0x89, 0x76, 0x96, 0x1b, 0xfe, 0xee,
    0x50, 0x0d, 0xc3, 0x40, 0xad, 0x00, 0x24, 0xbc, 0x62, 0x3d, 0xb2, 0xe4,
    0x68, 0xe0, 0xbf, 0xf3, 0x02, 0xe5, 0xd4, 0x1b, 0xa8, 0xa9, 0x1c, 0xc8,
    0xbd, 0xe7, 0x4c, 0xd2, 0x3b, 0x46, 0xfe, 0x3d, 0x0c, 0x80, 0x82, 0x0f,
    0xc3, 0xea, 0x60, 0x7e, 0x23, 0x97, 0xd9, 0x97, 0x0c, 0xb0, 0x87, 0x05,
    0x3f, 0x36, 0x8b, 0x76, 0x28, 0x3d, 0x2e, 0xa8, 0x20, 0xdd, 0x5c, 0x7d,
    0xb3, 0x25, 0xc2, 0xb7, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x81, 0xd2,
    0x30, 0x81, 0xcf, 0x30, 0x6c, 0x06, 0x03, 0x55, 0x1d, 0x23, 0x04, 0x65,
    0x30, 0x63, 0xa1, 0x56, 0xa4, 0x54, 0x30, 0x52, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x06,
    0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x82, 0x09, 0x00, 0xc0, 0xbe, 0x29,
    0xae, 0x89, 0x1b, 0xc9, 0xe5, 0x30, 0x09, 0x06, 0x03, 0x55, 0x1d, 0x13,
    0x04, 0x02, 0x30, 0x00, 0x30, 0x0b, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x04,
    0x04, 0x03, 0x02, 0x04, 0xf0, 0x30, 0x47, 0x06, 0x03, 0x55, 0x1d, 0x11,
    0x04, 0x40, 0x30, 0x3e, 0x82, 0x0e, 0x77, 0x77, 0x77, 0x2e, 0x64, 0x6f,
    0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x82, 0x0c, 0x2a, 0x2e,
    0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x82, 0x0e,
    0x61, 0x2a, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63,
    0x6f, 0x6d, 0x82, 0x0e, 0x2a, 0x62, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70,
    0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x7e, 0xfe, 0x0c, 0x03, 0x19, 0x7d, 0xfe, 0x4b, 0x6c, 0xa8,
    0xe6, 0x84, 0x68, 0xa5, 0x7f, 0x53, 0x82, 0x64, 0xf0, 0x8d, 0x23, 0xf3,
    0x0e, 0x53, 0x15, 0x79, 0x8f, 0xb9, 0x95, 0xa3, 0x31, 0xe4, 0x85, 0x73,
    0xfa, 0xf9, 0x74, 0x75, 0xd8, 0x76, 0x39, 0xa8, 0x82, 0x49, 0x8a, 0x8e,
    0xeb, 0x20, 0xfe, 0x2a, 0x46, 0xe8, 0xe1, 0x5b, 0xc3, 0x27, 0x17, 0xea,
    0x9d, 0x09, 0xe7, 0x7b, 0xde, 0x8e, 0x98, 0x18, 0x19, 0x6a, 0xaf, 0xe8,
    0x6e, 0xac, 0x56, 0x5a, 0xdd, 0x6b, 0x36, 0xc7, 0xc5, 0xc1, 0xca, 0x75,
    0x92, 0xc0, 0x47, 0x07, 0x1d, 0xea, 0x4c, 0x50, 0x24, 0x46, 0x35, 0x5e,
    0xc6, 0x6b, 0x46, 0x01, 0x0d, 0x7b, 0xf2, 0xb9, 0x89, 0x4c, 0x10, 0xef,
    0xee, 0xe8, 0xd6, 0xb1, 0x70, 0x10, 0x82, 0x57, 0xf2, 0xc8, 0xc0, 0xe9,
    0xbd, 0xac, 0xec, 0x8e, 0x0f, 0x9a, 0xd6, 0xaf, 0x9c, 0x45, 0x30, 0x0b,
    0x43, 0x6a, 0x0c, 0x14, 0x7f, 0x70, 0x62, 0xaa, 0x19, 0x3a, 0x9d, 0x25,
    0x87, 0xec, 0x39, 0xc4, 0x0f, 0xca, 0xbf, 0x7d, 0xe6, 0x23, 0x24, 0x41,
    0x04, 0xc8, 0xb2, 0x0e, 0x45, 0x6d, 0xe6, 0xf4, 0x00, 0x86, 0x12, 0xde,
    0x49, 0x01, 0x2b, 0xcf, 0x75, 0x3e, 0x9b, 0x51, 0x63, 0xe4, 0xe7, 0x1e,
    0x55, 0x6a, 0x84, 0x07, 0x50, 0xcb, 0xc9, 0x26, 0x90, 0xf1, 0x11, 0xab,
    0x10, 0xad, 0x13, 0xef, 0x83, 0x72, 0x85, 0x78, 0xfa, 0x93, 0x55, 0x39,
    0x7e, 0x17, 0xe1, 0x01, 0x71, 0xbc, 0xcf, 0x77, 0x1c, 0x7f, 0x13, 0x71,
    0x99, 0x20, 0x52, 0xf6, 0x57, 0x2b, 0x38, 0x30, 0x4a, 0x37, 0xf9, 0x74,
    0x7f, 0x94, 0xff, 0x2b, 0x55, 0x6d, 0x66, 0x91, 0x91, 0x23, 0xbb, 0x8d,
    0xa7, 0x0d, 0x5c, 0x87, 0x26, 0x44, 0x8b, 0x23, 0x1a, 0xd7, 0x3c, 0x0a,
    0x71, 0xb5, 0x0e, 0xe6, 0x1b, 0x66
};

static const UCHAR example2_com_der[] = {
    0x30, 0x82, 0x03, 0x26, 0x30, 0x82, 0x02, 0x0e, 0x02, 0x09, 0x00, 0xb4,
    0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xfe, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x53,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x32, 0x30,
    0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x35, 0x30, 0x37, 0x34,
    0x38, 0x32, 0x34, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x39, 0x30, 0x34,
    0x30, 0x37, 0x34, 0x38, 0x32, 0x34, 0x5a, 0x30, 0x57, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45,
    0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02,
    0x45, 0x4c, 0x31, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x0b, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
    0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
    0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
    0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xb5, 0xb8, 0x43,
    0xe0, 0x33, 0x31, 0x80, 0x31, 0xe6, 0x0d, 0x65, 0x84, 0x40, 0x34, 0xe1,
    0xfb, 0x69, 0xa6, 0x23, 0xbd, 0x35, 0xcd, 0xde, 0xbc, 0x0f, 0x1a, 0xd4,
    0x27, 0x44, 0xee, 0x03, 0xdf, 0xc5, 0xcc, 0x2c, 0x22, 0xda, 0xe1, 0x67,
    0x3b, 0x6b, 0xa1, 0xa9, 0x97, 0x93, 0xa1, 0x58, 0x1c, 0x23, 0x1b, 0x2c,
    0xf0, 0xd0, 0xee, 0x3f, 0x32, 0xbf, 0x23, 0x23, 0xf9, 0x22, 0x56, 0xa2,
    0x1e, 0x31, 0xfd, 0x22, 0x02, 0x9a, 0x12, 0x83, 0x2c, 0x34, 0xf4, 0x32,
    0xf2, 0xb4, 0x5f, 0x13, 0x77, 0x71, 0x49, 0x8f, 0xcb, 0x52, 0xb4, 0xf5,
    0xd6, 0xb2, 0xd5, 0xd6, 0x05, 0x92, 0x3d, 0x53, 0x85, 0x7d, 0x36, 0x5e,
    0x4d, 0xd4, 0x5d, 0xc0, 0xcd, 0x6d, 0xd8, 0xf3, 0xc8, 0x72, 0xa2, 0x4a,
    0xf9, 0x8b, 0x1a, 0x12, 0xa4, 0x89, 0xc2, 0xcd, 0x86, 0xf9, 0x50, 0x6c,
    0xc6, 0x37, 0x36, 0x3e, 0xeb, 0xb4, 0xb5, 0x7c, 0xda, 0x14, 0xf8, 0x05,
    0x51, 0x5c, 0x90, 0x13, 0xc2, 0xa8, 0x82, 0xac, 0x13, 0x8b, 0x29, 0x66,
    0x4c, 0x51, 0xde, 0xf4, 0x6f, 0xfc, 0x49, 0x95, 0x68, 0x36, 0xbc, 0x69,
    0xe4, 0xe0, 0xb9, 0xb7, 0x49, 0xcb, 0x99, 0x8c, 0x51, 0xc1, 0x82, 0x4b,
    0x94, 0xed, 0x83, 0x6e, 0xc8, 0xc6, 0x4c, 0x43, 0x47, 0x6d, 0x4f, 0xce,
    0x10, 0x54, 0x06, 0xd7, 0xa9, 0x2b, 0x29, 0x77, 0x53, 0xd3, 0xfb, 0xd3,
    0x32, 0xb9, 0x6d, 0x73, 0x22, 0x0d, 0xa8, 0xcd, 0x1a, 0xf9, 0x8e, 0x51,
    0xeb, 0x12, 0x37, 0xee, 0xc4, 0xe4, 0x21, 0xf6, 0x6a, 0x4e, 0x14, 0x9c,
    0xcc, 0xad, 0x02, 0xbe, 0x21, 0x99, 0x7d, 0x56, 0xd5, 0xb0, 0x13, 0x0e,
    0x3c, 0x0d, 0x6e, 0x8e, 0xb8, 0x3c, 0xb8, 0x5c, 0xff, 0x64, 0xe2, 0xf6,
    0xd6, 0xa7, 0x06, 0x03, 0x77, 0x0d, 0xe4, 0x5e, 0xe4, 0x50, 0x26, 0x28,
    0x7f, 0x02, 0x03, 0x01, 0x00, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x42, 0x70, 0x26, 0x75, 0xf1, 0xbe, 0x2a, 0xfe, 0x9f, 0xe6,
    0x48, 0xd1, 0x6a, 0xa7, 0x2d, 0x23, 0xd2, 0x19, 0xb6, 0x9f, 0x75, 0x50,
    0x07, 0x7e, 0x5a, 0x0f, 0x67, 0xc6, 0x8f, 0x70, 0x79, 0x8e, 0x13, 0xcd,
    0x07, 0x68, 0x47, 0x6a, 0x06, 0x6b, 0xc5, 0xc9, 0x94, 0x47, 0x4e, 0xed,
    0x0a, 0x82, 0xed, 0xd3, 0x7c, 0xac, 0xf6, 0x7b, 0x12, 0x22, 0xc1, 0xa3,
    0xdf, 0xf3, 0x08, 0x37, 0xeb, 0xc3, 0xdd, 0xfd, 0x1d, 0xa8, 0xf8, 0xcc,
    0x82, 0x1d, 0x84, 0x46, 0x63, 0xe2, 0xd1, 0x85, 0xeb, 0xf0, 0xeb, 0x55,
    0xa9, 0xde, 0xf5, 0x1c, 0x7f, 0xc1, 0xeb, 0x6b, 0x2f, 0x3b, 0x75, 0xfb,
    0xc8, 0x1e, 0x4a, 0x83, 0x07, 0x64, 0x60, 0x75, 0x7c, 0x3a, 0xe9, 0x4e,
    0x73, 0xc2, 0xb8, 0x91, 0xf8, 0x8a, 0xb4, 0xfe, 0x1b, 0x6a, 0x35, 0x5b,
    0xc4, 0xdf, 0xbe, 0x67, 0xda, 0x4f, 0xff, 0x0b, 0x3f, 0xe0, 0x8d, 0xbe,
    0x99, 0x81, 0x1d, 0x70, 0xa7, 0xae, 0x8b, 0xf6, 0xa1, 0x2a, 0x73, 0x07,
    0xb4, 0x08, 0x43, 0x1d, 0x24, 0x38, 0xfe, 0x4c, 0xc1, 0xef, 0x35, 0xd4,
    0x9b, 0xe9, 0x8c, 0xbb, 0xfb, 0xc3, 0x77, 0x27, 0x9b, 0x3c, 0x3a, 0xf6,
    0x51, 0x60, 0x17, 0xfd, 0x52, 0x41, 0x3d, 0xbf, 0x9d, 0x59, 0x4f, 0xda,
    0xf5, 0x75, 0xc8, 0x76, 0x21, 0xbb, 0xb6, 0xfb, 0xc8, 0x11, 0x8c, 0xc0,
    0x34, 0x27, 0x41, 0x72, 0xaa, 0x60, 0xfd, 0x0c, 0xb1, 0x75, 0x5c, 0x42,
    0x04, 0x76, 0x6b, 0x85, 0xae, 0x9d, 0x4d, 0xf4, 0x28, 0x55, 0xbf, 0x0e,
    0x93, 0x6b, 0xf7, 0x41, 0xea, 0x9e, 0xd2, 0x06, 0x5c, 0x3a, 0x53, 0x22,
    0x67, 0xe0, 0x2c, 0xe1, 0xc3, 0x34, 0xfd, 0x45, 0xa1, 0x90, 0xdb, 0x41,
    0x9e, 0x5b, 0x67, 0xab, 0xa2, 0x91, 0x78, 0x13, 0x99, 0x41, 0x1e, 0x28,
    0x3d, 0x6d, 0xc8, 0x3e, 0x51, 0x3d
};

static const UCHAR TestCrt_der[] = {
    0x30, 0x82, 0x03, 0x44, 0x30, 0x82, 0x02, 0x2c, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x02, 0x10, 0x00, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x47, 0x31, 0x11,
    0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x08, 0x54, 0x65, 0x73,
    0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x30, 0x1e, 0x17,
    0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x36, 0x30, 0x32, 0x34, 0x35, 0x35,
    0x35, 0x5a, 0x17, 0x0d, 0x31, 0x38, 0x31, 0x31, 0x31, 0x36, 0x30, 0x32,
    0x34, 0x35, 0x35, 0x35, 0x5a, 0x30, 0x46, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31,
    0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65,
    0x73, 0x74, 0x43, 0x72, 0x74, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06,
    0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00,
    0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01,
    0x01, 0x00, 0xc8, 0xab, 0xb5, 0x09, 0xa4, 0xaa, 0xfb, 0xc8, 0x9b, 0xc2,
    0x38, 0x78, 0x7b, 0xe1, 0xff, 0x65, 0x14, 0xfe, 0x38, 0x65, 0x94, 0xa0,
    0x1d, 0xe7, 0x63, 0x76, 0x11, 0xe8, 0xdf, 0x7f, 0xcf, 0x1a, 0x31, 0xed,
    0x37, 0xb2, 0x09, 0x35, 0xf7, 0xcc, 0x9a, 0x0d, 0x58, 0x72, 0x9a, 0x31,
    0xc8, 0xe8, 0x9a, 0x31, 0x2b, 0x35, 0xc8, 0xfb, 0xa4, 0xdc, 0xbe, 0x4e,
    0xce, 0x66, 0x7d, 0xbb, 0x8a, 0xc7, 0xfd, 0xa7, 0x0f, 0x0d, 0xfd, 0x42,
    0x0f, 0xe0, 0xd7, 0xcb, 0xd4, 0xc4, 0x71, 0xe8, 0xbf, 0xaf, 0x0b, 0xa5,
    0x15, 0x01, 0x41, 0x02, 0xbb, 0x03, 0x35, 0xbf, 0x73, 0xda, 0xd6, 0x03,
    0x0d, 0xc2, 0x00, 0xe4, 0x55, 0xb4, 0x94, 0x5b, 0x6e, 0xde, 0x5f, 0x60,
    0xd4, 0x22, 0xfd, 0x20, 0x50, 0x11, 0x6e, 0x82, 0xdf, 0x97, 0x43, 0xb5,
    0x70, 0xd0, 0xe0, 0x8e, 0xdd, 0xf0, 0x6d, 0x2b, 0x84, 0x10, 0x9c, 0xb8,
    0x48, 0xc1, 0xad, 0x7b, 0x5a, 0x9e, 0xaf, 0x5c, 0xf0, 0x9e, 0x0a, 0x92,
    0x71, 0xea, 0x6f, 0x91, 0xb5, 0xf1, 0x78, 0xc3, 0x22, 0xc0, 0xb9, 0x35,
    0x52, 0x6a, 0x23, 0xce, 0xb4, 0xc1, 0x53, 0x2f, 0x35, 0x88, 0x92, 0xcf,
    0xeb, 0x78, 0x67, 0xb0, 0xbe, 0x00, 0xf5, 0xcc, 0xc4, 0x71, 0xb1, 0xc9,
    0x7b, 0x54, 0x32, 0xb8, 0x4d, 0x80, 0x41, 0xa5, 0xe0, 0xdb, 0x17, 0xee,
    0x51, 0x3d, 0xc4, 0x0a, 0x1f, 0xf5, 0x01, 0x38, 0x28, 0x72, 0x91, 0x23,
    0x7b, 0x72, 0x42, 0x45, 0x93, 0x4b, 0x28, 0x8d, 0xa5, 0x6e, 0x00, 0x1d,
    0x2c, 0x36, 0x1a, 0x6b, 0x02, 0x5e, 0x5a, 0x0e, 0x2f, 0x9f, 0xed, 0x28,
    0xcb, 0x6a, 0x2e, 0x73, 0x41, 0x19, 0xe0, 0x4d, 0xf2, 0xec, 0xaf, 0x79,
    0x31, 0x53, 0xb7, 0x14, 0x9e, 0x26, 0x85, 0xbb, 0xcd, 0x36, 0x4e, 0xad,
    0x2e, 0xa4, 0x3b, 0x85, 0x42, 0x43, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3,
    0x3b, 0x30, 0x39, 0x30, 0x1f, 0x06, 0x03, 0x55, 0x1d, 0x23, 0x04, 0x18,
    0x30, 0x16, 0x80, 0x14, 0x3a, 0xd7, 0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b,
    0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4, 0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x04, 0x02, 0x30, 0x00, 0x30,
    0x0b, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x04, 0x04, 0x03, 0x02, 0x04, 0xf0,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x04, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x67, 0x0b, 0x4d, 0xb7,
    0x91, 0x3c, 0xed, 0x43, 0x51, 0xb9, 0x79, 0xc1, 0x7b, 0x04, 0x56, 0xe5,
    0xaf, 0x1e, 0x37, 0xeb, 0xc3, 0xe6, 0x18, 0x6a, 0x29, 0xf7, 0x09, 0xf0,
    0x82, 0xea, 0x20, 0x7a, 0x70, 0xd9, 0xa6, 0x6c, 0x61, 0x96, 0x61, 0xa7,
    0xc8, 0x77, 0x70, 0xc2, 0x36, 0xdb, 0x10, 0x9c, 0x75, 0x5d, 0x04, 0xd7,
    0x7a, 0x4f, 0x98, 0xbd, 0xb6, 0xa5, 0xd4, 0x71, 0x2e, 0x31, 0x0d, 0xc8,
    0xf0, 0x67, 0x23, 0x2c, 0x51, 0xf4, 0x69, 0x7c, 0x77, 0x6e, 0x92, 0x7f,
    0x3a, 0x09, 0x3b, 0x6d, 0xa5, 0x7d, 0xac, 0x1f, 0x6e, 0x2f, 0x17, 0x46,
    0x07, 0x0c, 0xb7, 0x8e, 0xce, 0xea, 0xac, 0xdc, 0x17, 0x9f, 0xca, 0x89,
    0xe2, 0xa0, 0x84, 0xac, 0x3b, 0x4c, 0x38, 0x4c, 0x2e, 0x0d, 0x1e, 0x6b,
    0xb9, 0x11, 0x62, 0x8f, 0x40, 0x2c, 0xcd, 0x43, 0x01, 0xec, 0xbb, 0xcd,
    0x61, 0x89, 0xd3, 0x13, 0xd4, 0xe0, 0x79, 0x8b, 0xb4, 0xc1, 0xf5, 0x48,
    0x0b, 0x40, 0xe6, 0xc3, 0x07, 0x7f, 0xda, 0x9a, 0x90, 0x61, 0x93, 0x69,
    0x3a, 0x20, 0xba, 0xc9, 0x52, 0xd4, 0x47, 0xf2, 0x6d, 0x03, 0xab, 0x3c,
    0xfe, 0xb2, 0x48, 0xad, 0xf6, 0x9f, 0xb9, 0x7f, 0x7d, 0x39, 0x1c, 0x6d,
    0x1e, 0xf6, 0x5b, 0x95, 0x8e, 0x87, 0x59, 0x42, 0x1b, 0xbf, 0x98, 0xd2,
    0x7b, 0x0b, 0x3b, 0x55, 0x6d, 0x6b, 0x57, 0x23, 0x92, 0x36, 0x0b, 0x17,
    0x22, 0x8c, 0xb0, 0xa6, 0x32, 0xb6, 0xdb, 0xe2, 0x5c, 0x74, 0xea, 0x74,
    0x09, 0xfd, 0x60, 0xf7, 0x2b, 0x06, 0xd7, 0x86, 0xb1, 0xf7, 0xfb, 0xd5,
    0xf2, 0xdd, 0x44, 0xf1, 0xf1, 0x66, 0xee, 0xd9, 0xbe, 0xe6, 0x5b, 0x20,
    0x13, 0xa8, 0xbf, 0x23, 0x0a, 0xfb, 0x0d, 0x2e, 0x96, 0x10, 0x74, 0x8c,
    0x15, 0x4b, 0xea, 0x0e, 0x82, 0xd7, 0x4d, 0x16, 0x26, 0x48, 0x5f, 0x90
};

static const UCHAR TestIntm_crl[] = {
    0x30, 0x82, 0x01, 0xa4, 0x30, 0x81, 0x8d, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x47,
    0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x08, 0x54,
    0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x17,
    0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x36, 0x30, 0x32, 0x35, 0x32, 0x33,
    0x33, 0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x36, 0x30, 0x32,
    0x35, 0x32, 0x33, 0x33, 0x5a, 0x30, 0x15, 0x30, 0x13, 0x02, 0x02, 0x10,
    0x00, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x36, 0x30, 0x32, 0x35,
    0x32, 0x32, 0x37, 0x5a, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
    0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00,
    0xb5, 0x73, 0xa1, 0x0f, 0x30, 0x07, 0xd8, 0x1d, 0x00, 0x9a, 0xaa, 0xfd,
    0x15, 0x04, 0x3d, 0x23, 0x66, 0x4a, 0x6e, 0xb6, 0xb8, 0x55, 0xc2, 0x2e,
    0x98, 0x63, 0xf3, 0xa0, 0x7e, 0x27, 0xd7, 0x53, 0x9a, 0xbf, 0x5c, 0xc7,
    0x2b, 0x12, 0x60, 0x32, 0x85, 0x1a, 0xc5, 0x38, 0x1c, 0xb5, 0x46, 0x6c,
    0x2e, 0x76, 0xa6, 0x20, 0x73, 0x00, 0x15, 0x30, 0x22, 0x79, 0x8b, 0x41,
    0xba, 0xef, 0x8e, 0xa1, 0x09, 0x49, 0x16, 0x9b, 0xb5, 0x62, 0xa1, 0xb7,
    0xcb, 0x54, 0x30, 0x97, 0x75, 0x17, 0x03, 0x00, 0xf8, 0x9a, 0xa3, 0x6b,
    0x0d, 0x73, 0x43, 0xd7, 0x4c, 0xea, 0xb8, 0x74, 0x60, 0x92, 0x58, 0xf8,
    0x9d, 0x4b, 0xbb, 0x05, 0xfd, 0x3f, 0x3c, 0x55, 0x86, 0x7b, 0x51, 0xa9,
    0x79, 0xc4, 0x49, 0x9b, 0xc8, 0xa1, 0xc7, 0x76, 0xcb, 0xf9, 0x4c, 0x6f,
    0xf0, 0x66, 0x81, 0x3b, 0x9a, 0xe0, 0xb1, 0x99, 0x24, 0x83, 0x70, 0x41,
    0x69, 0xe3, 0xfe, 0x95, 0x91, 0x84, 0x0c, 0x67, 0x2d, 0xc9, 0xc0, 0x26,
    0x23, 0x38, 0x89, 0x13, 0xa9, 0x7e, 0xfb, 0xd9, 0x93, 0xe9, 0x8a, 0x01,
    0xa6, 0x10, 0x72, 0x79, 0x99, 0xbb, 0xa6, 0x6c, 0xcc, 0x1d, 0x3e, 0x90,
    0xfc, 0x34, 0xac, 0xcc, 0xc5, 0xef, 0xbc, 0x69, 0x99, 0x3d, 0x25, 0xd0,
    0x0e, 0xfd, 0x07, 0xb0, 0x74, 0x68, 0xd0, 0xf3, 0x67, 0xc4, 0x61, 0x5f,
    0xe7, 0x27, 0xf2, 0x75, 0x06, 0x18, 0x75, 0x2d, 0xf1, 0xd3, 0x0c, 0xb2,
    0xbe, 0x38, 0x67, 0x8e, 0x2b, 0xbc, 0x30, 0xa0, 0xda, 0xd6, 0xd0, 0xf5,
    0xf9, 0x5a, 0xa9, 0x78, 0x01, 0xbc, 0x59, 0x78, 0x58, 0x0b, 0x50, 0x95,
    0x8a, 0x63, 0x71, 0x23, 0xae, 0xb7, 0x5a, 0xbd, 0xff, 0xf5, 0x65, 0x8b,
    0x36, 0x10, 0x4a, 0x7e, 0xa5, 0xdb, 0x4f, 0x70, 0xbe, 0xf7, 0xf2, 0xd7,
    0xfd, 0xa7, 0xc5, 0x2d
};

static const UCHAR TestIntm_der[] = {
    0x30, 0x82, 0x03, 0x62, 0x30, 0x82, 0x02, 0x4a, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xff,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x05, 0x05, 0x00, 0x30, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10,
    0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31,
    0x31, 0x36, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a, 0x17, 0x0d, 0x31,
    0x39, 0x30, 0x33, 0x33, 0x31, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a,
    0x30, 0x47, 0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
    0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xc8, 0xad,
    0xd6, 0xb3, 0xf3, 0xfb, 0x4c, 0x7c, 0x9c, 0xa4, 0x3a, 0x9a, 0x38, 0xc2,
    0x0e, 0x95, 0xe3, 0xda, 0xca, 0xea, 0xdf, 0x1f, 0x84, 0x2e, 0xb3, 0xae,
    0xb1, 0x78, 0x40, 0x0d, 0xeb, 0xee, 0x60, 0xf0, 0xd6, 0x27, 0x19, 0xa7,
    0x57, 0xe1, 0x54, 0x5f, 0x9f, 0x73, 0xc8, 0x00, 0x5d, 0xff, 0x53, 0xb2,
    0xda, 0x99, 0x67, 0x12, 0xe9, 0xdb, 0xa0, 0xdd, 0xb1, 0xa8, 0xcd, 0xf8,
    0x2b, 0x9b, 0x0a, 0xe6, 0x00, 0x91, 0x3e, 0xc9, 0x31, 0x72, 0xc5, 0x99,
    0x35, 0xeb, 0x84, 0x4d, 0x93, 0xda, 0xa8, 0x6b, 0xb8, 0xe2, 0x23, 0x72,
    0x9e, 0x0a, 0x0c, 0xec, 0x65, 0xdb, 0x7a, 0x1a, 0xf7, 0xca, 0x29, 0x05,
    0x82, 0xdd, 0x4d, 0xe0, 0x38, 0xcd, 0xf6, 0xbd, 0xfe, 0x13, 0xd9, 0x8f,
    0x6d, 0x8f, 0xdf, 0x60, 0x7a, 0x83, 0xe8, 0xe5, 0x2c, 0xb5, 0xa1, 0xbb,
    0x48, 0x1b, 0x7b, 0x53, 0x93, 0x58, 0x69, 0x7d, 0x12, 0x99, 0x6d, 0xe2,
    0x51, 0x18, 0x88, 0xe9, 0xa3, 0x7a, 0x39, 0xfd, 0x30, 0x12, 0x61, 0x20,
    0xc7, 0xc4, 0x3e, 0xe3, 0xfe, 0x7f, 0x0b, 0xc3, 0x71, 0x25, 0x7a, 0x37,
    0x21, 0x16, 0x97, 0x2b, 0x24, 0x09, 0x44, 0x8d, 0xbe, 0x47, 0xe6, 0x6d,
    0x0a, 0x9c, 0x30, 0xf8, 0x56, 0xc8, 0x42, 0xbc, 0xa8, 0xd2, 0xd7, 0x47,
    0xb4, 0x6f, 0x5a, 0xbf, 0xdd, 0xd4, 0x8f, 0xea, 0xb9, 0x44, 0xca, 0xa1,
    0x62, 0x35, 0xe9, 0x92, 0x13, 0x22, 0xb7, 0x1f, 0x1a, 0xd3, 0x26, 0xa4,
    0x8a, 0x1c, 0x19, 0x46, 0x09, 0x0a, 0xee, 0xe2, 0x93, 0x1b, 0xab, 0x1e,
    0x44, 0x32, 0x26, 0xa6, 0x64, 0x1e, 0x47, 0xa0, 0x6e, 0xce, 0x15, 0xd2,
    0x31, 0x38, 0xc4, 0xb4, 0x0e, 0x89, 0x10, 0xd6, 0xd7, 0x3d, 0x56, 0x87,
    0xed, 0x32, 0x29, 0x59, 0x8f, 0xbb, 0xab, 0x1e, 0xca, 0x25, 0xb6, 0x0d,
    0x5f, 0x6f, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x45, 0x30, 0x43, 0x30,
    0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3a, 0xd7,
    0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b, 0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4,
    0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d,
    0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02,
    0x01, 0x00, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff,
    0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x8d, 0x9d, 0xe2, 0xcb, 0x55, 0x28, 0xbf, 0xa2, 0x29, 0x67,
    0x52, 0xe3, 0x47, 0x80, 0x84, 0xcd, 0x8c, 0x5c, 0xbd, 0x6b, 0x3d, 0xea,
    0xcc, 0x4b, 0xc6, 0x86, 0xb4, 0xf5, 0x5e, 0xec, 0x37, 0x6a, 0xe1, 0x53,
    0x71, 0x8d, 0xbd, 0xfa, 0xab, 0xd1, 0xa3, 0x95, 0x90, 0x54, 0x67, 0xe4,
    0x37, 0xdb, 0x10, 0xda, 0xf0, 0xdc, 0xbf, 0x1b, 0xdf, 0x25, 0x5a, 0x98,
    0x4a, 0x87, 0x02, 0x3d, 0xbd, 0x0e, 0xca, 0xe6, 0x88, 0x1e, 0x31, 0xa7,
    0x96, 0xdd, 0x74, 0x01, 0x3c, 0x74, 0x78, 0xfc, 0xab, 0xeb, 0x4b, 0x7a,
    0xbd, 0xf6, 0xcf, 0x26, 0x31, 0xf2, 0xe9, 0xbf, 0x6b, 0x44, 0x04, 0xa5,
    0x5a, 0xcd, 0x6f, 0x9a, 0x5f, 0x80, 0xe5, 0x9d, 0x05, 0xe3, 0xe3, 0x24,
    0xae, 0x04, 0x71, 0x84, 0x41, 0xbc, 0x48, 0x3c, 0xcf, 0x59, 0xf8, 0xcb,
    0xeb, 0x6e, 0xe1, 0x19, 0xb5, 0x04, 0x06, 0xd3, 0x5c, 0xe3, 0x86, 0xaa,
    0x4a, 0xed, 0x63, 0x7a, 0x6e, 0x0e, 0x35, 0x80, 0xe7, 0xd7, 0xf6, 0xac,
    0x66, 0xda, 0xdb, 0xdc, 0x20, 0x67, 0x90, 0xde, 0x13, 0x6e, 0x96, 0xde,
    0x0d, 0x42, 0x36, 0x03, 0x09, 0x88, 0x13, 0xcd, 0x0d, 0x70, 0xb3, 0xf0,
    0xdf, 0xf2, 0x7a, 0xdf, 0xa8, 0xa4, 0x34, 0x15, 0xff, 0xfc, 0x7c, 0xe8,
    0x48, 0xfb, 0x59, 0xd0, 0x4c, 0xc6, 0x27, 0xe3, 0xed, 0x8d, 0x66, 0x7d,
    0x39, 0x78, 0xa1, 0xea, 0x76, 0xc4, 0xbd, 0xca, 0xe4, 0xa1, 0xf9, 0x06,
    0x8a, 0xdd, 0xd0, 0x27, 0xdb, 0x46, 0xe2, 0x79, 0xd0, 0x0f, 0x79, 0xf2,
    0x89, 0x78, 0xc3, 0x8d, 0x76, 0x7f, 0xf3, 0xab, 0x01, 0xe1, 0x12, 0xf4,
    0x50, 0x6a, 0x2f, 0xc0, 0x75, 0x00, 0x35, 0xa7, 0x0f, 0x2b, 0x03, 0x80,
    0x04, 0x69, 0x21, 0x66, 0x2e, 0x28, 0xef, 0xc4, 0x6f, 0x19, 0x5d, 0x17,
    0x9f, 0x8c, 0xb5, 0x32, 0x3c, 0x93
};

static const UCHAR bad_crl[] = {
    0x30, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

static const UCHAR bad_crl_length[] = {
    0x30, 0x82, 0x12, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

static const UCHAR bad_crl_null_tag[] = {
    0x05
};

static const UCHAR bad_crl_null_tag2[] = {
    0x05, 0x00
};

static const UCHAR bad_crl_tbscert_tag[] = {
    0x30, 0x82, 0x00, 0x06, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00
};

static const UCHAR bad_crl_tbscert_length[] = {
    0x30, 0x82, 0x00, 0x06, 0x30, 0x82, 0xff, 0x00, 0x00, 0x00
};

static const UCHAR bad_crl_tbscert_type[] = {
    0x30, 0x82, 0x00, 0x06, 0x31, 0x04, 0x00, 0x00, 0x00, 0x00
};

static const UCHAR bad_crl_ver_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0xf0, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_ver_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x02, 0x82, 0xf6, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sig_seq_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x02, 0x01, 0x00, 0xf0, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sig_seq_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x02, 0x01, 0x00, 0x30, 0x82,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sig_algorithm_bad_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x25, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sig_algorithm_bad_tlv[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0xf0, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sig_algorithm_bad_oid_end[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x02, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_issuer_bad_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x1f, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_issuer_bad_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x82,
    0xff, 0xff, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_issuer_bad_tag2[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x05, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_this_update_time_bad_tlv[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x40, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_this_update_time_bad_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x82,
    0xff, 0xff, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_this_update_time_bad_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x05, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_next_update_time_bad_tlv[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0xf0, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_next_update_time_bad_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x82, 0xff, 0xff, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_no_next_update_time[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x31, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_wrong_signature_algorithm[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_certs_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0xf0, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_certs_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x82, 0xf0, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_certs_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x31, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_signature_seq_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0xf0, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sigdata_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0xf3, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sigdata_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0xf1, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_sigdata_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x05, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_extension_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0xa3, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0xf0, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_extension_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0xa3, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x82,
    0xf6, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_extension_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0xa3, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x02,
    0x06, 0x09, 0xfa, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x90, 0x24, 0x79, 0x99, 0x0f, 0x11,
    0x72, 0x75, 0xf6, 0xeb, 0xb8, 0xef, 0x0e, 0xa7, 0xb5, 0x8e, 0x1b, 0xc5,
    0xdb, 0xe7, 0x5a, 0xfd, 0x58, 0x85, 0x06, 0x65, 0xf7, 0x2e, 0x62, 0x4d,
    0xbe, 0x39, 0x14, 0x1c, 0x31, 0x18, 0xb5, 0x04, 0x65, 0x6b, 0x32, 0x33,
    0x6f, 0x70, 0xe9, 0x8b, 0x1b, 0x6c, 0x43, 0xe1, 0xf7, 0xba, 0xb6, 0x10,
    0x54, 0xef, 0x23, 0x61, 0xf6, 0x84, 0x8a, 0xa5, 0x3a, 0x9a, 0x4c, 0x27,
    0x13, 0xdb, 0x04, 0x85, 0x52, 0x08, 0x4d, 0xbd, 0xae, 0x23, 0x03, 0x8b,
    0x68, 0xe8, 0x7f, 0xfe, 0xd4, 0xcb, 0xeb, 0x49, 0x81, 0x37, 0x98, 0x72,
    0x0d, 0xe3, 0x60, 0xac, 0x5d, 0xbd, 0xa8, 0x78, 0x3a, 0xcf, 0xc7, 0x8c,
    0x82, 0x4f, 0x19, 0xfd, 0xb9, 0x01, 0x17, 0x66, 0x7e, 0xd2, 0x8b, 0x3d,
    0x1f, 0x3e, 0xcc, 0x37, 0x6c, 0x23, 0x35, 0xf2, 0x3c, 0x53, 0x82, 0x7f,
    0xba, 0x46, 0xfa, 0x4f, 0x66, 0x92, 0xdb, 0x95, 0xd1, 0xef, 0xdb, 0x19,
    0x98, 0x4b, 0x8e, 0xdf, 0xea, 0xb3, 0xaa, 0x9a, 0x45, 0x1a, 0xda, 0xd7,
    0x57, 0x36, 0x0e, 0xaa, 0x37, 0xf2, 0x57, 0x0d, 0xc9, 0x94, 0xf4, 0x50,
    0x43, 0x33, 0x5a, 0x99, 0x96, 0x0f, 0xdf, 0x23, 0x71, 0xe1, 0xd4, 0xf5,
    0x9b, 0x34, 0x89, 0xd2, 0xb3, 0xbf, 0xe6, 0xd5, 0x99, 0x95, 0xa4, 0x85,
    0x6b, 0xb1, 0xc7, 0x4d, 0x64, 0x0b, 0xf3, 0xf6, 0x9f, 0xda, 0xc2, 0x09,
    0x61, 0xa8, 0x22, 0x4c, 0xa8, 0xdb, 0xcb, 0x9c, 0x4a, 0xf5, 0xbd, 0xcb,
    0x9b, 0xa1, 0x8d, 0xa6, 0xe6, 0xde, 0xf3, 0xf9, 0xc9, 0xc7, 0x49, 0x3f,
    0xc0, 0xbb, 0x67, 0xec, 0xc9, 0x1b, 0x10, 0xc7, 0x7a, 0x84, 0x24, 0xab,
    0xc6, 0x5d, 0x21, 0x3a, 0xc7, 0xdd, 0xd1, 0xb7, 0x1f, 0xe3, 0x71, 0x47,
    0xb8, 0xac, 0x77, 0xc9, 0xf9, 0xf2, 0xf8, 0x5e, 0x1e, 0x6d
};

static const UCHAR bad_crl_entry_seq_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0xf0, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x9f, 0xaf, 0xcc, 0x92, 0x2c, 0x70,
    0x0f, 0x42, 0x9a, 0x97, 0xe7, 0xfd, 0xe9, 0x1a, 0xfb, 0x7f, 0x05, 0x75,
    0xb2, 0x0d, 0xcf, 0x1e, 0xe0, 0xa6, 0xf7, 0x3e, 0x62, 0x0b, 0xce, 0x4b,
    0x6a, 0xe3, 0x80, 0x7d, 0xa1, 0xa8, 0xc0, 0x04, 0xe9, 0x9b, 0x75, 0x40,
    0x60, 0x39, 0x5a, 0x9c, 0xa0, 0x42, 0x33, 0xf7, 0xdb, 0x4e, 0x53, 0xc8,
    0x99, 0xe9, 0x08, 0x1a, 0x69, 0xbe, 0x32, 0xbe, 0xf1, 0x21, 0x18, 0x9a,
    0x72, 0x5d, 0x17, 0x78, 0x75, 0x1b, 0xc5, 0xfa, 0xb9, 0xfc, 0x96, 0x6a,
    0x85, 0x1b, 0x28, 0x72, 0x44, 0x21, 0xd4, 0x90, 0x3d, 0xcf, 0xa4, 0x26,
    0x74, 0xc9, 0x04, 0xd9, 0x95, 0x6e, 0x63, 0x88, 0x7c, 0xfa, 0x92, 0x49,
    0xb1, 0x46, 0x6b, 0xc8, 0xbb, 0x04, 0x6f, 0x1a, 0x36, 0x6d, 0x30, 0x3f,
    0x83, 0x39, 0x69, 0xd4, 0x74, 0xbb, 0x2e, 0x77, 0xf4, 0x1f, 0x15, 0xa1,
    0xd7, 0x96, 0x29, 0x58, 0x5a, 0xca, 0x81, 0x06, 0x72, 0x98, 0x1f, 0x95,
    0x32, 0xd0, 0x93, 0x6e, 0x20, 0x7b, 0xf0, 0x27, 0xa3, 0x2d, 0xde, 0xd9,
    0x35, 0x24, 0x32, 0x22, 0x4d, 0x86, 0xf5, 0x15, 0x18, 0x3b, 0x24, 0x34,
    0x17, 0x9d, 0xbd, 0x93, 0x5e, 0x29, 0x38, 0x99, 0xd4, 0x8a, 0x2c, 0x8d,
    0x7e, 0x12, 0x5c, 0x7b, 0x9f, 0x1c, 0x86, 0x5d, 0x5e, 0xaa, 0xe0, 0x55,
    0x4c, 0x90, 0x92, 0x34, 0xbf, 0x2d, 0x5f, 0xb2, 0x03, 0xf4, 0x8b, 0x60,
    0x12, 0xd4, 0x17, 0xf7, 0xec, 0x0e, 0xe7, 0x7d, 0xf2, 0xf5, 0x1b, 0xdb,
    0x91, 0x4b, 0xff, 0x61, 0xe1, 0xa8, 0xc6, 0x0d, 0x5d, 0x38, 0xd8, 0x24,
    0x8a, 0x00, 0x26, 0xf1, 0xa5, 0x5c, 0x7f, 0x6c, 0x17, 0x4c, 0xbb, 0x2a,
    0xca, 0x21, 0x5b, 0xb2, 0x06, 0x32, 0xcc, 0x6d, 0xb0, 0xe4, 0x85, 0x04,
    0x7f, 0x23, 0x57, 0x01, 0x0e, 0x0a, 0x74, 0xa0, 0x7a, 0x66
};

static const UCHAR bad_crl_entry_seq_tag2[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0xb0, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x21, 0xbb, 0xe3, 0x59, 0x1c, 0x13,
    0xe9, 0xdd, 0xfd, 0x24, 0x1b, 0x8c, 0x34, 0xb3, 0x7c, 0x53, 0x6d, 0x4c,
    0x8d, 0x7f, 0x3e, 0xc2, 0xa2, 0x9a, 0x16, 0xaf, 0x54, 0xdc, 0x26, 0x57,
    0x47, 0xb5, 0x32, 0xd2, 0x9a, 0x62, 0x4f, 0x14, 0x6a, 0x5d, 0xf4, 0x2e,
    0x1d, 0xff, 0x73, 0x8e, 0x59, 0xee, 0x4c, 0x2f, 0x31, 0x67, 0xf5, 0xee,
    0x76, 0x64, 0x4c, 0x29, 0x0d, 0x56, 0xc0, 0x36, 0xab, 0x1f, 0x70, 0xdb,
    0x13, 0x09, 0x69, 0xc1, 0xf0, 0x55, 0x7d, 0x55, 0x39, 0xef, 0xee, 0xda,
    0x35, 0xa4, 0x4a, 0xa6, 0x3b, 0x07, 0x38, 0xa1, 0xaf, 0x7c, 0xb9, 0x34,
    0x52, 0xf9, 0x50, 0x5c, 0x02, 0xc4, 0x50, 0xda, 0x1f, 0x31, 0x4b, 0x55,
    0xa3, 0x1c, 0x1d, 0xaf, 0xa3, 0xac, 0xc8, 0xa5, 0xb6, 0xea, 0xf5, 0x7f,
    0x1d, 0xaf, 0xcd, 0xe4, 0x5d, 0x1a, 0x63, 0xe9, 0x1f, 0x11, 0x32, 0xcf,
    0xeb, 0xb7, 0xd1, 0x61, 0xf7, 0x93, 0x1f, 0x2b, 0x32, 0x7b, 0x53, 0x30,
    0x79, 0x0f, 0xfd, 0xfb, 0x22, 0x01, 0xb1, 0x6c, 0x3e, 0xe0, 0xfe, 0xd4,
    0x69, 0x2b, 0xf1, 0x4d, 0x9d, 0x96, 0xb0, 0x36, 0x93, 0x45, 0x10, 0xbc,
    0xcc, 0x19, 0x23, 0x0e, 0x27, 0x97, 0xe0, 0x88, 0x00, 0xec, 0x34, 0xfe,
    0x9c, 0xec, 0xc0, 0x2d, 0x19, 0xa6, 0x22, 0xb1, 0x7d, 0x5d, 0x36, 0xa8,
    0x5f, 0x78, 0xf3, 0x38, 0x40, 0x53, 0x61, 0x62, 0x6a, 0xb0, 0x68, 0x44,
    0xb2, 0xb5, 0x4f, 0x82, 0x04, 0xf5, 0x36, 0x20, 0xad, 0x9e, 0x34, 0xc7,
    0x3d, 0x5f, 0x53, 0xc8, 0x69, 0x4b, 0xfb, 0xa4, 0x38, 0x90, 0xe0, 0x05,
    0x23, 0x3b, 0xea, 0x29, 0xdf, 0xfb, 0x37, 0x97, 0x14, 0x52, 0x3c, 0xce,
    0x84, 0x2f, 0x41, 0x54, 0x93, 0x05, 0x22, 0x3d, 0xc9, 0x0a, 0x71, 0x52,
    0xbd, 0x65, 0x4f, 0x35, 0x53, 0xff, 0x37, 0xf6, 0x73, 0x63
};

static const UCHAR bad_crl_entry_seq_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x82, 0xf2, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x75, 0x88, 0xf4, 0xcf, 0x4d, 0xb2,
    0xd3, 0x55, 0x94, 0x9f, 0xff, 0x4d, 0x0d, 0x42, 0x83, 0x75, 0xf5, 0xde,
    0xac, 0x17, 0xb0, 0x6a, 0x79, 0xa4, 0x2c, 0xc7, 0xce, 0xd5, 0xec, 0xb0,
    0x3e, 0x79, 0x98, 0x93, 0xdd, 0x11, 0x8c, 0xbc, 0x5c, 0x7d, 0x1a, 0xf7,
    0x02, 0xb0, 0xb7, 0x74, 0x91, 0x9a, 0x1e, 0xbf, 0x02, 0x79, 0x94, 0xa2,
    0xba, 0xe7, 0x35, 0xf3, 0xed, 0x2f, 0xf7, 0xeb, 0xe6, 0xed, 0x21, 0x48,
    0x32, 0xe9, 0x83, 0x04, 0xe4, 0x41, 0xeb, 0x77, 0x15, 0x10, 0x8a, 0x98,
    0x72, 0x91, 0xef, 0x67, 0xc2, 0xa9, 0x73, 0x99, 0x0f, 0x12, 0x7d, 0x1a,
    0x82, 0x40, 0xe0, 0x62, 0x13, 0xb5, 0xa5, 0x9c, 0x84, 0xaa, 0x05, 0x93,
    0x03, 0xac, 0x76, 0x2a, 0x7d, 0x57, 0xfb, 0xfd, 0xdb, 0x68, 0xc0, 0xee,
    0x6f, 0x12, 0x4c, 0x3b, 0x39, 0x75, 0xbf, 0x27, 0xb7, 0x91, 0x80, 0x21,
    0x22, 0x02, 0x61, 0x82, 0x72, 0xee, 0x86, 0x57, 0x59, 0x5d, 0x28, 0xe4,
    0xd4, 0xec, 0x59, 0x58, 0x91, 0x71, 0x84, 0x30, 0x87, 0x1a, 0x3a, 0xc8,
    0x45, 0x52, 0xac, 0xfb, 0x49, 0x9e, 0x59, 0x3f, 0x15, 0x31, 0xfa, 0xdc,
    0xe8, 0x84, 0x1d, 0x3c, 0xac, 0x83, 0x16, 0xe7, 0x41, 0xe0, 0xb2, 0xb3,
    0x90, 0x44, 0xa2, 0x30, 0x68, 0x19, 0x80, 0x95, 0xe2, 0xdc, 0xc9, 0xbc,
    0x5e, 0x74, 0xaf, 0xd7, 0xe8, 0xe2, 0xa2, 0xff, 0x55, 0xf8, 0x6b, 0xe5,
    0xac, 0x9b, 0x53, 0x17, 0x25, 0x08, 0x44, 0x0b, 0x9b, 0x1a, 0x55, 0x99,
    0xdf, 0x61, 0x2e, 0xa1, 0xa4, 0xa1, 0xea, 0xa6, 0x27, 0x23, 0x04, 0x64,
    0x3f, 0x42, 0xef, 0x8b, 0x02, 0x5a, 0x0f, 0xfc, 0xb1, 0x0b, 0x57, 0x2d,
    0x0d, 0x33, 0x24, 0x93, 0x1b, 0x26, 0x00, 0x9b, 0x2f, 0xce, 0x5b, 0xb4,
    0x29, 0x3c, 0x45, 0x47, 0x48, 0x6a, 0x6a, 0x12, 0x3d, 0x93
};

static const UCHAR bad_crl_entry_seq_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x31, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x02, 0x2b, 0x78, 0x80, 0xf6, 0x23,
    0xae, 0x75, 0x05, 0x3d, 0x6b, 0x3c, 0x82, 0x9c, 0x35, 0xe7, 0x65, 0xa5,
    0x8e, 0xde, 0x13, 0x2a, 0x5f, 0xb9, 0x2d, 0x03, 0xeb, 0xad, 0x74, 0xfe,
    0x7c, 0xbd, 0xe8, 0x3b, 0x45, 0xb7, 0x17, 0x54, 0x0a, 0x2f, 0x1a, 0xbb,
    0xa7, 0x1f, 0x32, 0x8b, 0x50, 0x61, 0xb9, 0x56, 0x1a, 0xe3, 0xa0, 0xe7,
    0xdd, 0xc6, 0x1b, 0x77, 0x12, 0x6c, 0x6e, 0xc3, 0xb2, 0x70, 0x4d, 0x48,
    0x2b, 0x12, 0x84, 0x51, 0x13, 0x20, 0xa4, 0x05, 0xb4, 0x73, 0x8d, 0x8b,
    0xca, 0x39, 0x3e, 0x17, 0x32, 0xe8, 0xcd, 0x35, 0x60, 0x87, 0x8d, 0xbf,
    0x9a, 0x1a, 0x72, 0x70, 0x8c, 0x8f, 0x95, 0xea, 0x83, 0x9c, 0xb3, 0x39,
    0xbc, 0x8e, 0x25, 0x6c, 0x68, 0xef, 0xa9, 0xa6, 0x59, 0x79, 0xff, 0xd0,
    0x54, 0x83, 0xaf, 0x8d, 0x37, 0x96, 0x59, 0x50, 0xa8, 0xf8, 0x65, 0xdd,
    0xec, 0x0f, 0x58, 0x4f, 0xa2, 0xab, 0xbe, 0x96, 0x1c, 0xc5, 0xb0, 0x53,
    0xcd, 0xe8, 0x94, 0xf2, 0xaf, 0x34, 0xc3, 0x13, 0xb3, 0x39, 0x67, 0x9f,
    0xa9, 0x8a, 0x56, 0x1b, 0x36, 0x89, 0x75, 0x8b, 0xeb, 0x09, 0x12, 0xc8,
    0xc4, 0x49, 0x5a, 0x1b, 0x1a, 0x9f, 0x71, 0xb3, 0x04, 0x79, 0xd4, 0x9f,
    0xac, 0x67, 0x8c, 0xd8, 0x0f, 0x23, 0x4f, 0x0c, 0x80, 0x09, 0xf9, 0xd3,
    0x5d, 0xbc, 0xdd, 0xcc, 0xcc, 0xde, 0x67, 0xbd, 0xd8, 0xc0, 0x19, 0x7f,
    0x88, 0x9a, 0x0b, 0xcb, 0xc1, 0x20, 0xaa, 0xb7, 0x07, 0xa8, 0xa0, 0x82,
    0x4a, 0x13, 0x60, 0x31, 0x08, 0xbc, 0x56, 0x3f, 0x08, 0x21, 0x02, 0x1d,
    0x49, 0x0f, 0x0e, 0x84, 0x95, 0x0d, 0x3d, 0xd5, 0xfc, 0xbb, 0x14, 0xa9,
    0x57, 0xf1, 0xbd, 0xf3, 0x75, 0x30, 0xc5, 0x3c, 0xf1, 0x85, 0x29, 0xc3,
    0xe7, 0xc0, 0x79, 0xe9, 0x1b, 0x44, 0x3d, 0x86, 0x33, 0x17
};

static const UCHAR bad_crl_entry_seq_type2[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0xa2, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x93, 0x25, 0x72, 0xac, 0x63, 0x0e,
    0x7e, 0xef, 0x18, 0x99, 0xa3, 0xc4, 0x75, 0x4c, 0xc1, 0x56, 0x96, 0x25,
    0x13, 0xa8, 0x4e, 0x5d, 0xeb, 0x04, 0x67, 0xbe, 0x32, 0xbb, 0xf5, 0x69,
    0x9b, 0xbf, 0x93, 0x89, 0x2b, 0x4f, 0x25, 0xd6, 0x97, 0x49, 0xdf, 0xd0,
    0x7f, 0x01, 0xfd, 0x84, 0x55, 0x0b, 0x93, 0x5d, 0xa3, 0x1e, 0x94, 0x77,
    0xb6, 0x15, 0xf1, 0x2b, 0x90, 0x08, 0x8b, 0x86, 0x83, 0x9f, 0x22, 0x5e,
    0x66, 0x95, 0x4e, 0x64, 0x15, 0x4b, 0x0b, 0x8f, 0x2e, 0xdd, 0x0a, 0x84,
    0x59, 0x1c, 0xfe, 0x1b, 0x40, 0x49, 0x4f, 0xc1, 0xbe, 0x30, 0x31, 0xe7,
    0xa8, 0x97, 0x7d, 0x80, 0x37, 0x76, 0x98, 0xb0, 0x94, 0x9e, 0x67, 0xed,
    0x24, 0x9c, 0x60, 0x12, 0x5b, 0xe8, 0xd7, 0x74, 0x11, 0x4a, 0x91, 0xa5,
    0xd3, 0x97, 0x5a, 0xb7, 0x2a, 0xe1, 0x12, 0x20, 0x99, 0x4e, 0xba, 0x2e,
    0x00, 0xd6, 0xcc, 0x67, 0x21, 0x0a, 0xfa, 0xa8, 0xc2, 0xbe, 0x90, 0x3b,
    0x8f, 0xc3, 0xf0, 0x49, 0xe5, 0x2d, 0x17, 0xa4, 0xa0, 0x61, 0x18, 0x38,
    0xdd, 0x3a, 0x72, 0xb4, 0x86, 0x54, 0x3f, 0x56, 0x9a, 0x03, 0xe2, 0xbb,
    0x86, 0x9f, 0xe7, 0x53, 0x62, 0x52, 0x5f, 0x2e, 0xe5, 0x56, 0xdc, 0xb1,
    0x94, 0x72, 0xeb, 0xee, 0x95, 0x0a, 0xf7, 0x7c, 0xf7, 0x77, 0xb3, 0x7a,
    0xcd, 0x2c, 0x22, 0x89, 0x84, 0x86, 0x8f, 0xcb, 0x0a, 0x52, 0x3c, 0x63,
    0x84, 0xbc, 0x87, 0x0a, 0x41, 0x2f, 0x20, 0xd8, 0xfd, 0xea, 0x3f, 0x95,
    0x74, 0x8c, 0xfd, 0xb1, 0xf1, 0x89, 0xf8, 0x6d, 0xa5, 0x25, 0xb7, 0x84,
    0x85, 0xf2, 0x4a, 0x94, 0xa5, 0x0d, 0xbd, 0x99, 0xc3, 0xfb, 0xc6, 0x28,
    0x4d, 0x98, 0x7e, 0xf7, 0x6b, 0x11, 0x3d, 0x33, 0xad, 0x6a, 0xbe, 0x80,
    0x4a, 0x10, 0xf1, 0x42, 0xa5, 0xed, 0xab, 0x6e, 0xe1, 0xcd
};

static const UCHAR bad_crl_entry_serial_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0xf2, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0xb2, 0x1f, 0x95, 0xab, 0x4a, 0x7b,
    0xd6, 0xfd, 0x42, 0x51, 0x37, 0x68, 0x84, 0x0b, 0x57, 0xdb, 0x2a, 0xdc,
    0x43, 0xf6, 0x6f, 0x9e, 0x01, 0x52, 0xb8, 0x1b, 0x5e, 0x7f, 0xd7, 0x18,
    0x47, 0x09, 0x89, 0x63, 0x78, 0xe7, 0x25, 0x59, 0xa1, 0x52, 0xd7, 0xeb,
    0x25, 0x22, 0x3a, 0x5a, 0x7b, 0x1b, 0xf6, 0xee, 0x44, 0x24, 0x86, 0xb1,
    0xcd, 0xe8, 0xc5, 0xc0, 0xef, 0xd1, 0x94, 0xb3, 0x68, 0xf8, 0x81, 0xb7,
    0x09, 0xad, 0x51, 0xbc, 0xaf, 0x07, 0x46, 0x5d, 0x99, 0x25, 0xca, 0x4f,
    0xf9, 0x00, 0x32, 0x11, 0x64, 0xcd, 0xdb, 0xdf, 0xfb, 0xf4, 0xb0, 0x5e,
    0x95, 0x24, 0xa4, 0x30, 0x3c, 0x05, 0xca, 0xae, 0x56, 0xe7, 0x28, 0x9a,
    0xad, 0x48, 0xb8, 0x73, 0xf1, 0x63, 0x0e, 0xfd, 0xbb, 0xda, 0x90, 0xd9,
    0x3d, 0x6a, 0x52, 0xfb, 0xb8, 0x16, 0x8a, 0x9a, 0x15, 0x78, 0x2e, 0x54,
    0x6c, 0xe0, 0xbd, 0x1a, 0x36, 0xf4, 0x2a, 0xd4, 0x3e, 0xc7, 0x71, 0x69,
    0x40, 0x29, 0x73, 0x91, 0x55, 0xf7, 0x9f, 0xdb, 0x18, 0x6f, 0xa2, 0xd7,
    0x8d, 0x40, 0x83, 0x31, 0xf8, 0xf4, 0xaa, 0x88, 0x55, 0x76, 0x92, 0xc6,
    0xc1, 0xdd, 0x27, 0xb0, 0xee, 0xb6, 0x7f, 0x86, 0x79, 0x21, 0x54, 0x16,
    0x3e, 0x6d, 0x55, 0xf4, 0x4e, 0x4b, 0xdf, 0x3c, 0xa1, 0x29, 0x77, 0xc1,
    0xd3, 0xbe, 0x25, 0x3e, 0xd0, 0xbe, 0x28, 0xcc, 0xb0, 0xb4, 0x4f, 0xa8,
    0x19, 0x1a, 0x3d, 0x87, 0xdb, 0x8d, 0xca, 0xe7, 0xc0, 0xb5, 0x4a, 0x5c,
    0x42, 0x45, 0x8d, 0x5b, 0x02, 0x2e, 0x31, 0x7d, 0x9e, 0xa8, 0x66, 0x19,
    0x40, 0x26, 0xe5, 0x2d, 0xc8, 0x69, 0x3f, 0x36, 0x06, 0x91, 0x5d, 0xfe,
    0x01, 0x35, 0xc2, 0xc7, 0x0d, 0xd7, 0x6b, 0x60, 0x9d, 0xfc, 0x75, 0xf1,
    0x16, 0x2f, 0xaf, 0xd9, 0x11, 0xf6, 0x79, 0x60, 0xf9, 0xce
};

static const UCHAR bad_crl_entry_serial_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x82, 0xf0, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x3c, 0xd7, 0x09, 0xb7, 0xae, 0xbf,
    0x52, 0x0a, 0x47, 0xa2, 0x90, 0xac, 0x54, 0x45, 0xe8, 0x47, 0x28, 0x05,
    0x9f, 0x2f, 0xb9, 0x39, 0x5a, 0xde, 0x5e, 0xe1, 0xe0, 0xb9, 0xe4, 0x3b,
    0x58, 0x1f, 0x6b, 0xd4, 0x7d, 0x86, 0xa4, 0x7e, 0x48, 0x00, 0xbe, 0xba,
    0x7a, 0xbb, 0x51, 0x85, 0xf5, 0x6f, 0xee, 0xac, 0x7e, 0x02, 0x6d, 0x6d,
    0xfe, 0x65, 0x03, 0x3f, 0x4f, 0xb4, 0xd5, 0xeb, 0xa1, 0xd0, 0x12, 0x1c,
    0x3c, 0x99, 0xde, 0x4f, 0x5c, 0x1e, 0xcc, 0x79, 0x57, 0x0d, 0xc6, 0x6b,
    0x8b, 0xcf, 0x76, 0x73, 0x1e, 0x6a, 0x51, 0xe3, 0xde, 0x4d, 0x0c, 0x6f,
    0x14, 0x3e, 0xcd, 0xdb, 0xd9, 0x82, 0x14, 0x0a, 0xa4, 0xa7, 0x70, 0xff,
    0x72, 0x65, 0x94, 0x51, 0x90, 0x97, 0x18, 0xb7, 0xdf, 0x0b, 0x34, 0x2c,
    0x71, 0x6e, 0x7d, 0xd4, 0xcc, 0x98, 0x4f, 0xf5, 0x69, 0xca, 0x12, 0x8f,
    0xb9, 0x5f, 0x81, 0xfd, 0xf8, 0x9a, 0xa0, 0x6f, 0x42, 0xbf, 0x05, 0xd3,
    0xd7, 0xe5, 0x07, 0xa2, 0x5b, 0xb5, 0x1a, 0x65, 0x17, 0x35, 0xb9, 0x3a,
    0xfa, 0xc8, 0x5c, 0xcc, 0x03, 0x93, 0x9d, 0xeb, 0x0d, 0xf5, 0x4a, 0x94,
    0x3c, 0xef, 0x5e, 0x00, 0xf5, 0xf2, 0x30, 0xd4, 0xe2, 0xa2, 0x1b, 0x9f,
    0x3f, 0x82, 0x8a, 0x8e, 0xc8, 0xfc, 0x56, 0x67, 0x69, 0x52, 0xfd, 0xfc,
    0x5e, 0x6c, 0x00, 0x38, 0x1b, 0x97, 0x24, 0x8c, 0xdb, 0xba, 0x42, 0x78,
    0x9c, 0x59, 0x78, 0xb4, 0x8a, 0x0d, 0x34, 0x63, 0x5c, 0x61, 0xc0, 0x18,
    0xcf, 0xa6, 0xc1, 0x3a, 0xee, 0x4a, 0x3f, 0x01, 0x32, 0x5e, 0x71, 0x31,
    0x06, 0xa7, 0x56, 0x50, 0x50, 0xd4, 0x63, 0xb7, 0x18, 0x39, 0x38, 0xba,
    0xa7, 0xc2, 0xc3, 0x43, 0xe5, 0x9f, 0x73, 0x14, 0x4b, 0x1a, 0x9e, 0x43,
    0xf4, 0x62, 0x2a, 0xb5, 0x9f, 0xb3, 0x2e, 0xc8, 0x38, 0xec
};

static const UCHAR bad_crl_entry_serial_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x05, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x7e, 0xc6, 0xb6, 0xd9, 0x07, 0x46,
    0x7f, 0xd6, 0xfb, 0x0f, 0x54, 0xfb, 0xe8, 0x88, 0x7a, 0xb1, 0x75, 0xc0,
    0xaf, 0xdb, 0x88, 0x9b, 0xdc, 0x33, 0x39, 0xf9, 0xe4, 0x88, 0xf9, 0x26,
    0xd6, 0x52, 0xfa, 0x9d, 0xcd, 0xf2, 0x49, 0xcc, 0x91, 0x5d, 0x29, 0x52,
    0xfb, 0x00, 0x84, 0x8a, 0xa2, 0xba, 0x51, 0x04, 0x88, 0x53, 0xc3, 0x7c,
    0x5b, 0x1a, 0xa6, 0x75, 0xbd, 0xa8, 0xaf, 0x28, 0x1c, 0x99, 0xdf, 0x5d,
    0x80, 0x2e, 0x7c, 0x2a, 0x64, 0x1b, 0xd4, 0xd6, 0xaa, 0xad, 0x7d, 0x0f,
    0x41, 0x77, 0xd6, 0xeb, 0x76, 0x5a, 0xa2, 0xee, 0xbb, 0x9a, 0xb6, 0xd6,
    0x1c, 0x65, 0xdf, 0xa4, 0x54, 0xdf, 0x11, 0x54, 0x9a, 0xad, 0x7f, 0x01,
    0x2c, 0xa4, 0x71, 0x25, 0x79, 0x0f, 0xb8, 0x9a, 0x11, 0x41, 0x33, 0xa2,
    0x4d, 0xb0, 0xe0, 0x34, 0x2a, 0x0e, 0xc5, 0x15, 0xd6, 0x37, 0xc5, 0x55,
    0xdf, 0x76, 0x4f, 0xe3, 0xd7, 0xd3, 0xc2, 0x20, 0x44, 0x0a, 0x87, 0xf0,
    0x67, 0x8a, 0x62, 0xf4, 0xda, 0xf8, 0x80, 0xcd, 0xc5, 0x39, 0x64, 0x1f,
    0x3a, 0x3e, 0x23, 0x12, 0xfa, 0xce, 0xe2, 0x7f, 0xd1, 0x26, 0x00, 0x1f,
    0xcd, 0xac, 0xc8, 0xdf, 0x74, 0x30, 0x9b, 0x56, 0x93, 0xc2, 0xbe, 0x26,
    0x67, 0xbe, 0x44, 0x1d, 0xc9, 0x32, 0x38, 0xfd, 0x2c, 0xf0, 0x45, 0xe9,
    0x0d, 0xaf, 0xf9, 0xda, 0x5d, 0xeb, 0xed, 0xe4, 0xcb, 0x40, 0x32, 0xba,
    0x52, 0xf9, 0x1c, 0xeb, 0x41, 0x1f, 0x70, 0xd0, 0xe6, 0x81, 0x34, 0x1e,
    0xf3, 0x24, 0xe7, 0x43, 0xce, 0x4a, 0xd8, 0x37, 0x0f, 0x4c, 0x73, 0xd0,
    0x62, 0x34, 0xba, 0x60, 0xf5, 0xaf, 0xd8, 0x35, 0x76, 0x76, 0xc9, 0xf5,
    0xbe, 0x89, 0xea, 0x71, 0x41, 0xfb, 0xc6, 0xab, 0x3c, 0x21, 0x42, 0x7e,
    0xbf, 0xd2, 0x71, 0x08, 0x6b, 0xcf, 0x58, 0xf9, 0xf8, 0x97
};

static const UCHAR bad_crl_entry_revocation_date_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0xf7, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x5e, 0xa4, 0x9d, 0xf5, 0x40, 0xc6,
    0x94, 0xa9, 0x88, 0x1e, 0x9f, 0xf8, 0x12, 0xe7, 0xdb, 0xea, 0xbc, 0xc9,
    0x4c, 0xee, 0xc7, 0xc8, 0x31, 0x6c, 0x7d, 0x75, 0x37, 0xa2, 0xbd, 0xbb,
    0x24, 0xbd, 0xf4, 0xf8, 0x98, 0x44, 0x9a, 0xe1, 0x4a, 0x53, 0xcb, 0x89,
    0x16, 0x15, 0x6b, 0x48, 0xe8, 0x73, 0x0c, 0xaa, 0xc1, 0x6e, 0x85, 0x24,
    0xcf, 0xc6, 0xaf, 0x2a, 0x07, 0x39, 0x55, 0x04, 0x3e, 0x1f, 0x63, 0x85,
    0xa0, 0x45, 0x00, 0xe0, 0xcd, 0x8d, 0x59, 0xfa, 0xf1, 0x45, 0x1b, 0x67,
    0xb7, 0x5c, 0x43, 0xe2, 0x7f, 0xd0, 0x58, 0xcb, 0xd1, 0x8c, 0xf6, 0x7a,
    0x51, 0xad, 0x0e, 0xda, 0x62, 0xc0, 0x31, 0xbc, 0xbf, 0x7a, 0x69, 0x2c,
    0xdb, 0xe1, 0x1a, 0x2c, 0xdb, 0x6f, 0xc4, 0x70, 0xe8, 0x85, 0x07, 0x1a,
    0xba, 0x87, 0x7e, 0x29, 0x54, 0x22, 0x4e, 0x56, 0xfc, 0xba, 0xad, 0x2f,
    0x16, 0x92, 0xf2, 0xba, 0x57, 0x38, 0xf1, 0xce, 0x17, 0x75, 0x7e, 0xf1,
    0xf8, 0xb6, 0x34, 0x8d, 0xb5, 0x48, 0xcc, 0xf2, 0x75, 0x28, 0xdb, 0x13,
    0x86, 0x44, 0xc8, 0xff, 0xcb, 0xbf, 0x43, 0x72, 0x7e, 0x73, 0xd7, 0xa3,
    0xcc, 0x9e, 0x1c, 0xf3, 0x69, 0x2d, 0x12, 0x6b, 0xfc, 0xdd, 0x24, 0x12,
    0x00, 0x98, 0x6d, 0x21, 0x64, 0x7a, 0xf9, 0x3e, 0xae, 0xdf, 0xdc, 0xcd,
    0x86, 0x5f, 0x4c, 0x4b, 0xc0, 0xd9, 0xe5, 0x3d, 0x06, 0xfe, 0x42, 0xba,
    0x89, 0x04, 0x9f, 0xdf, 0x74, 0x53, 0x23, 0x53, 0x95, 0x1f, 0x03, 0x86,
    0xb4, 0x6f, 0x1f, 0xbd, 0xf9, 0xab, 0x56, 0x58, 0x3d, 0x07, 0x44, 0x44,
    0x2c, 0xd8, 0x47, 0xde, 0xc9, 0xd3, 0x55, 0x88, 0x69, 0x8e, 0x1d, 0xe1,
    0x30, 0xa7, 0x41, 0x7c, 0x9f, 0x92, 0x5f, 0xb6, 0xda, 0x28, 0xdc, 0xd5,
    0x10, 0x75, 0x11, 0x6a, 0x3e, 0x35, 0x4e, 0x91, 0x6b, 0x1d
};

static const UCHAR bad_crl_entry_revocation_date_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x82, 0xf1, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0xa1, 0x04, 0xdf, 0xca, 0xe4, 0xde,
    0x87, 0xb4, 0x4f, 0x0e, 0x2c, 0xbf, 0x8d, 0x55, 0x07, 0x91, 0x57, 0x2d,
    0x79, 0x3b, 0x18, 0x9a, 0x59, 0x86, 0x9f, 0x2a, 0x5b, 0x36, 0xe2, 0x92,
    0x4d, 0x54, 0x91, 0x30, 0x71, 0x6b, 0x68, 0x96, 0x7f, 0x61, 0x36, 0x70,
    0x5c, 0x02, 0xfd, 0x50, 0x2c, 0x71, 0x7d, 0x95, 0x1e, 0x13, 0xf8, 0x2c,
    0xe4, 0x0f, 0x22, 0x9e, 0x54, 0x91, 0x8a, 0xd4, 0x85, 0xa4, 0xac, 0x46,
    0x6e, 0x53, 0x55, 0xee, 0xf5, 0xd2, 0xed, 0x46, 0xf8, 0xba, 0x78, 0x40,
    0xad, 0x3a, 0x00, 0x10, 0xc8, 0x79, 0x3f, 0x73, 0x60, 0xc2, 0x7f, 0xdc,
    0x91, 0x85, 0x7e, 0x37, 0x9e, 0x07, 0xd6, 0x94, 0x51, 0x9c, 0xe1, 0x78,
    0x7c, 0x1f, 0xf8, 0x6f, 0xc6, 0xa3, 0xfb, 0xef, 0xf3, 0xf9, 0x1f, 0xc2,
    0x8d, 0x18, 0x68, 0x10, 0xd3, 0x5b, 0x05, 0x82, 0x7f, 0x32, 0xc9, 0xba,
    0x37, 0xbf, 0x18, 0x69, 0x2d, 0x2f, 0x86, 0x81, 0x53, 0xc6, 0x4a, 0xf8,
    0x06, 0x55, 0xf3, 0x57, 0x72, 0x81, 0x9c, 0xa3, 0x2b, 0x3c, 0xd8, 0x7e,
    0x1a, 0xd3, 0xee, 0x01, 0xaf, 0xfb, 0x2a, 0xa1, 0x9b, 0xed, 0x48, 0x97,
    0x32, 0xbb, 0x41, 0x5e, 0x8e, 0xa2, 0xb0, 0xfa, 0x97, 0x7b, 0xde, 0x37,
    0x95, 0xb5, 0xdf, 0x92, 0xac, 0x4d, 0x55, 0xdd, 0x62, 0x8d, 0xde, 0xec,
    0xa4, 0x3a, 0x41, 0xab, 0x5a, 0xd6, 0x95, 0xf5, 0xd4, 0x94, 0x2c, 0xe9,
    0xb0, 0x6f, 0xad, 0x4e, 0xff, 0x00, 0x24, 0x42, 0xc9, 0x8a, 0x50, 0xb0,
    0xa3, 0x67, 0xcb, 0x38, 0x6b, 0xce, 0xa8, 0x41, 0xa6, 0x2d, 0xa3, 0xb4,
    0x3f, 0x7d, 0x7a, 0xec, 0xcc, 0x8b, 0x13, 0x55, 0x18, 0x4b, 0x7e, 0xf8,
    0x21, 0x6c, 0x08, 0x65, 0x00, 0x52, 0xa1, 0xff, 0x05, 0x97, 0xa6, 0x82,
    0xc9, 0x7d, 0xdb, 0xe4, 0x92, 0x72, 0xb0, 0x0d, 0x46, 0x52
};

static const UCHAR bad_crl_entry_revocation_date_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x05, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0xa2, 0x78, 0x8d, 0xc6, 0x1f, 0xcb,
    0x32, 0x5f, 0x97, 0x0c, 0xbb, 0xb7, 0x57, 0x7e, 0x72, 0xd6, 0x92, 0x2b,
    0xbe, 0x4e, 0x6b, 0x15, 0x62, 0xa1, 0x5b, 0x88, 0x8d, 0xe5, 0xde, 0xd0,
    0x4b, 0x31, 0xf3, 0x21, 0x85, 0xd4, 0xb7, 0x86, 0x64, 0x27, 0x36, 0xd8,
    0x3e, 0x2f, 0xcb, 0x13, 0x1b, 0x31, 0xdc, 0xf3, 0x1a, 0xfc, 0x82, 0x7b,
    0xbc, 0x45, 0xb6, 0xe6, 0x92, 0x6c, 0x7c, 0x73, 0x45, 0xdf, 0x0d, 0x0b,
    0x51, 0xf7, 0x5f, 0x6d, 0xea, 0x72, 0x2e, 0xe9, 0x50, 0xbe, 0x99, 0x45,
    0xee, 0xaf, 0x41, 0xa0, 0x94, 0x31, 0xaf, 0xd8, 0x46, 0x51, 0xde, 0xe7,
    0xae, 0x9a, 0x4b, 0x5a, 0xb8, 0xfb, 0xd3, 0x26, 0x87, 0x55, 0xfb, 0x97,
    0xbe, 0x25, 0x93, 0x52, 0x38, 0xf7, 0x3a, 0x09, 0x59, 0x60, 0x38, 0xa3,
    0x34, 0x31, 0x29, 0xd2, 0x70, 0x00, 0x5b, 0x60, 0x45, 0xae, 0x11, 0x97,
    0x24, 0xb0, 0x2d, 0x67, 0xb0, 0x33, 0xfe, 0xf9, 0x1c, 0x5a, 0x87, 0xef,
    0x18, 0xec, 0x55, 0xd6, 0x6d, 0x41, 0x0a, 0xbc, 0x40, 0x76, 0x8e, 0x1a,
    0xbe, 0xda, 0x9b, 0x0b, 0xbd, 0xef, 0x61, 0x8a, 0x4e, 0x3c, 0xec, 0xcc,
    0xe0, 0xff, 0x82, 0xdf, 0xc0, 0xcc, 0x7e, 0x5d, 0x98, 0xfb, 0x01, 0x51,
    0xd1, 0xfd, 0xfb, 0xde, 0xf8, 0x95, 0x0a, 0xee, 0xe6, 0x53, 0x6d, 0xad,
    0x10, 0x04, 0x33, 0x9a, 0xb8, 0xa3, 0xd2, 0xbe, 0x5a, 0x88, 0x1f, 0x43,
    0x4c, 0x1e, 0xef, 0x69, 0x37, 0x8d, 0x30, 0x70, 0x21, 0x64, 0xa4, 0x0d,
    0xbd, 0xcc, 0xe7, 0xba, 0x2f, 0x70, 0xa5, 0x20, 0xfa, 0x6c, 0x0e, 0xa0,
    0xb7, 0x33, 0x47, 0x83, 0xe1, 0xe2, 0x57, 0x15, 0x2c, 0x37, 0x40, 0xcb,
    0x35, 0x60, 0x9b, 0x07, 0xb9, 0x0b, 0x7e, 0x0c, 0xea, 0x4c, 0x8c, 0x34,
    0x25, 0x01, 0x3e, 0x8a, 0xb5, 0x3d, 0x8f, 0x83, 0xf0, 0xe4
};

static const UCHAR bad_crl_entry_revocation_date_type2[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0xb8, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x1d, 0xfb, 0x04, 0xa0, 0x18, 0x52,
    0x52, 0xfb, 0xad, 0x3a, 0x78, 0x83, 0xa8, 0xc8, 0x32, 0x6b, 0x87, 0x9d,
    0x48, 0x2b, 0x8e, 0x4d, 0xd7, 0xfb, 0x72, 0x10, 0xd8, 0x19, 0x90, 0x0e,
    0xa4, 0x71, 0x71, 0x21, 0x50, 0x93, 0x87, 0x13, 0xd7, 0x78, 0x89, 0x03,
    0x88, 0x72, 0xde, 0x50, 0x0f, 0xd1, 0xc8, 0x9e, 0xdf, 0xee, 0xcb, 0xce,
    0x48, 0x6a, 0x3f, 0x3f, 0x1d, 0x55, 0x65, 0x7e, 0x49, 0x95, 0x23, 0x8c,
    0xa8, 0xb8, 0xe2, 0x22, 0x06, 0x92, 0xc7, 0x66, 0x98, 0x0d, 0xe4, 0x27,
    0x3c, 0x4a, 0xbb, 0xae, 0x44, 0xc6, 0xca, 0x67, 0x59, 0x05, 0x29, 0x13,
    0xc1, 0x19, 0xfb, 0xb5, 0x0a, 0x55, 0x69, 0x63, 0x38, 0x5e, 0x69, 0xe2,
    0x6e, 0xa9, 0xb6, 0xfc, 0x94, 0x07, 0xdb, 0xd1, 0x25, 0xf0, 0x9e, 0x2d,
    0x9f, 0x05, 0xaa, 0x58, 0x28, 0xa1, 0xa4, 0xa0, 0x2a, 0x45, 0xb8, 0xe3,
    0x8a, 0xbc, 0x74, 0x52, 0x2c, 0x06, 0xdb, 0x15, 0x27, 0xa7, 0x95, 0x82,
    0xef, 0x53, 0x60, 0x83, 0x12, 0x94, 0xa0, 0x16, 0x56, 0x30, 0x4b, 0xae,
    0x62, 0x87, 0x37, 0xb6, 0x43, 0xb4, 0xc2, 0x2d, 0xf9, 0xc2, 0x45, 0x7e,
    0x01, 0x22, 0x86, 0x0c, 0xdc, 0xbd, 0x56, 0x69, 0x77, 0xa3, 0x8f, 0x13,
    0xcb, 0x99, 0xa3, 0xd6, 0xe0, 0xab, 0x55, 0x98, 0x39, 0x9c, 0x9c, 0x22,
    0xeb, 0x43, 0xca, 0xf3, 0x50, 0xec, 0x05, 0xd3, 0x43, 0x7d, 0xb0, 0x51,
    0xe7, 0xfb, 0x42, 0xaa, 0x57, 0x00, 0x26, 0x8c, 0xa0, 0x8f, 0x79, 0xa7,
    0x07, 0x5b, 0xf1, 0x89, 0x0a, 0x7b, 0x78, 0x67, 0x95, 0xf9, 0x53, 0x77,
    0xe6, 0xd0, 0x00, 0x91, 0x0e, 0xef, 0xb9, 0x1b, 0x8b, 0x3d, 0x05, 0x64,
    0x2f, 0x4a, 0x54, 0x5e, 0x36, 0x10, 0xd2, 0x89, 0x81, 0xd4, 0x02, 0x89,
    0xa0, 0x07, 0x22, 0xaf, 0xf9, 0x6b, 0x4d, 0x55, 0xe5, 0x6a
};

static const UCHAR bad_crl_entry_revocation_date_type3[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0xb0, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x58, 0x48, 0xe5, 0x21, 0x47, 0x91,
    0x69, 0xf2, 0xaa, 0x54, 0x3e, 0x4a, 0x5b, 0xb1, 0xc2, 0x50, 0xc8, 0xd1,
    0x7f, 0xc4, 0x5e, 0x78, 0x5e, 0xc1, 0xe5, 0xdd, 0xcc, 0xfc, 0x3e, 0x75,
    0x0b, 0xfb, 0x6b, 0xc9, 0x45, 0x21, 0x3d, 0x69, 0x69, 0x92, 0x59, 0x5b,
    0x9b, 0x97, 0x83, 0x8c, 0x73, 0xfc, 0x14, 0x65, 0x8f, 0x04, 0x6f, 0x2e,
    0x17, 0x0e, 0x5e, 0x94, 0xd4, 0x67, 0x75, 0x04, 0x3b, 0xf5, 0x47, 0xf7,
    0x95, 0xe0, 0x0d, 0xcd, 0xda, 0x1a, 0x5f, 0x17, 0x8b, 0x79, 0x6f, 0x8a,
    0x7c, 0x19, 0x1a, 0xeb, 0xb9, 0xf8, 0xaa, 0x64, 0x5e, 0x16, 0x20, 0x32,
    0xa9, 0x3f, 0x93, 0x0b, 0x05, 0x5f, 0xc1, 0x6b, 0xf6, 0xec, 0xea, 0x28,
    0x46, 0xee, 0xe6, 0x86, 0x5c, 0xa3, 0x11, 0xb0, 0xe1, 0xb1, 0x80, 0xfb,
    0x2a, 0x0c, 0xdf, 0x93, 0x0f, 0xa8, 0x11, 0xde, 0x65, 0xa8, 0xc1, 0xc9,
    0x4f, 0x61, 0x5e, 0x91, 0x72, 0xa3, 0xa7, 0x10, 0x6b, 0x9b, 0x65, 0x0d,
    0x72, 0x60, 0x93, 0x5c, 0xdb, 0x3e, 0x03, 0xdd, 0x81, 0x0c, 0xb3, 0x92,
    0xa9, 0xa6, 0x2c, 0x5f, 0xae, 0xd4, 0x6f, 0xe8, 0x00, 0x3d, 0x88, 0x63,
    0x1d, 0xe5, 0xdf, 0xe8, 0x9c, 0xc3, 0x9c, 0x66, 0xfa, 0xfb, 0x75, 0x8d,
    0x4d, 0xa0, 0x68, 0xd6, 0xed, 0x76, 0x2e, 0x81, 0x6a, 0x40, 0x97, 0xf7,
    0xbf, 0x8e, 0xf1, 0x96, 0x6d, 0x8b, 0xee, 0x12, 0xa1, 0x4e, 0x78, 0x9e,
    0x37, 0x33, 0xca, 0x05, 0xac, 0x62, 0x6a, 0x5a, 0x7f, 0x4c, 0xc8, 0xc8,
    0xf0, 0x01, 0x66, 0x55, 0x10, 0x42, 0x8d, 0x99, 0xa1, 0xae, 0xaa, 0x79,
    0x31, 0x7d, 0xd7, 0x0f, 0xb4, 0xf8, 0x6c, 0x9e, 0xbf, 0x57, 0xc6, 0x0c,
    0x19, 0xbe, 0x14, 0x6e, 0x9c, 0x37, 0x03, 0x1f, 0xeb, 0x08, 0x0b, 0x91,
    0x3d, 0xdf, 0x6b, 0x55, 0xe0, 0x00, 0x61, 0x3c, 0xfc, 0x58
};

static const UCHAR bad_crl_entry_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1c, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x83, 0xf4, 0x50, 0x8d, 0x32, 0xb9,
    0x3f, 0xe7, 0x99, 0xa6, 0x81, 0xb3, 0xee, 0xc6, 0x56, 0x3e, 0x95, 0x00,
    0xc9, 0x63, 0x29, 0x59, 0xc3, 0xa6, 0xde, 0x97, 0x4a, 0xc0, 0x78, 0x6d,
    0x0c, 0x9f, 0xf5, 0x58, 0xd5, 0x31, 0x6d, 0xf4, 0xba, 0x27, 0x0f, 0xbf,
    0xe0, 0xee, 0x30, 0x84, 0x6a, 0x2e, 0xad, 0x7e, 0x27, 0xd7, 0xf8, 0x52,
    0x9f, 0x7f, 0x5e, 0x1f, 0xbd, 0xd4, 0xb4, 0xbc, 0x7d, 0x48, 0x6f, 0xd5,
    0xd1, 0x1b, 0x94, 0x34, 0xab, 0x25, 0x2f, 0xaf, 0x15, 0x61, 0x16, 0x24,
    0x87, 0x0b, 0x57, 0x12, 0x84, 0xbe, 0xf8, 0x7f, 0x23, 0x90, 0xaa, 0x94,
    0x10, 0x09, 0xa6, 0x6d, 0x32, 0xdb, 0x2b, 0xa3, 0x8d, 0x76, 0x1a, 0x19,
    0x7c, 0x99, 0xbb, 0x4c, 0x43, 0xcb, 0x4c, 0xba, 0xf9, 0xa6, 0x66, 0xa7,
    0x60, 0xcf, 0x7d, 0x75, 0x77, 0x97, 0x40, 0xeb, 0xb0, 0x14, 0xda, 0x2c,
    0xd0, 0x1f, 0xe2, 0x3d, 0x57, 0x37, 0xae, 0x03, 0x30, 0x55, 0x02, 0x24,
    0xeb, 0x51, 0x8a, 0xda, 0xbe, 0x81, 0xc7, 0x03, 0xeb, 0x09, 0xc6, 0x26,
    0x08, 0x66, 0x3d, 0x23, 0x04, 0x91, 0xb9, 0x5c, 0x40, 0x7c, 0x6d, 0x19,
    0x34, 0xb0, 0x00, 0x07, 0x7a, 0x87, 0x21, 0x52, 0xce, 0x67, 0x90, 0x49,
    0xed, 0x34, 0x8c, 0xfd, 0x1f, 0x93, 0xc3, 0x99, 0x3d, 0x03, 0x68, 0x45,
    0xb7, 0x31, 0x81, 0xc4, 0x79, 0xcb, 0x1b, 0xf6, 0x75, 0x9d, 0x61, 0x12,
    0x54, 0xcb, 0x5d, 0xd0, 0x2d, 0x86, 0x0c, 0x6d, 0x8d, 0x91, 0x21, 0xac,
    0x66, 0x12, 0xf1, 0x8f, 0xed, 0x77, 0x83, 0x45, 0xcd, 0xa2, 0x16, 0x99,
    0xf4, 0xce, 0xe0, 0x8f, 0x6e, 0x7c, 0xe4, 0xab, 0x86, 0x01, 0x82, 0xd7,
    0xe1, 0x4a, 0x95, 0xf5, 0x38, 0x2d, 0xcf, 0xaf, 0x6f, 0xc2, 0x6d, 0x28,
    0x37, 0x73, 0x3d, 0xf1, 0xb6, 0xdd, 0x8c, 0xc5, 0x5a, 0x31
};

static const UCHAR bad_signature_padding_type[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x18, 0x7e, 0xa5, 0x35, 0x35, 0x53,
    0xfd, 0x72, 0xcf, 0xe6, 0xa4, 0x58, 0xd5, 0x15, 0xbb, 0x8b, 0x37, 0xda,
    0x21, 0x46, 0x9e, 0xd1, 0x25, 0x4a, 0x6a, 0x65, 0xe4, 0x7e, 0x6a, 0x4d,
    0xcc, 0x1a, 0x84, 0xf4, 0x5a, 0x56, 0x53, 0xa2, 0x5f, 0x04, 0xe3, 0x9c,
    0xb8, 0x70, 0xaf, 0x92, 0xcc, 0x2b, 0x61, 0x9d, 0x2e, 0x1d, 0xfd, 0xec,
    0x00, 0x0e, 0x6a, 0x8e, 0x83, 0xbf, 0xb1, 0x47, 0x7f, 0x42, 0x23, 0x90,
    0xe7, 0x71, 0xdc, 0xd8, 0x4c, 0xd0, 0x6a, 0xb9, 0x37, 0xf1, 0x87, 0x91,
    0xe5, 0x59, 0xf0, 0x19, 0x4f, 0x02, 0xbe, 0x8a, 0xf4, 0x19, 0x2c, 0x7a,
    0x9b, 0xc6, 0xb7, 0x53, 0xa7, 0x99, 0xf8, 0x9f, 0xa6, 0x10, 0x90, 0xce,
    0xc8, 0x00, 0x67, 0x32, 0x32, 0xaf, 0x9d, 0xcc, 0x29, 0xce, 0x27, 0xf5,
    0xb5, 0xb1, 0xaa, 0x56, 0x70, 0xb0, 0xf3, 0xe9, 0x42, 0xe3, 0x7e, 0x6c,
    0xc2, 0xbe, 0xeb, 0x0c, 0x2d, 0x77, 0x71, 0xd2, 0x2b, 0xfe, 0x3c, 0x1e,
    0x76, 0x61, 0xfd, 0x09, 0x03, 0xc5, 0xca, 0x30, 0x90, 0x83, 0x0f, 0x86,
    0x47, 0x43, 0xca, 0xbb, 0xee, 0xd6, 0x0f, 0x40, 0xaa, 0xa2, 0x86, 0x9b,
    0x73, 0x99, 0x20, 0xaf, 0xcc, 0xbc, 0x3c, 0x0f, 0x6e, 0x2c, 0x9a, 0xcc,
    0xd2, 0x9a, 0xf5, 0xe0, 0x6e, 0xd0, 0xce, 0x98, 0x48, 0x20, 0xd5, 0xa3,
    0x5f, 0xe2, 0x9e, 0x18, 0x63, 0x39, 0x59, 0xab, 0x95, 0x9c, 0xe8, 0x42,
    0x32, 0x2a, 0x1b, 0x48, 0x55, 0xa4, 0x9e, 0xf7, 0xac, 0xf5, 0x24, 0xca,
    0xe7, 0x04, 0xa6, 0x7b, 0xb2, 0xbb, 0xed, 0x64, 0x81, 0xee, 0x18, 0x35,
    0x88, 0x91, 0xe7, 0xdd, 0x88, 0x94, 0xe4, 0x91, 0xa4, 0x67, 0xa9, 0xd3,
    0x4c, 0x3d, 0xba, 0x9c, 0xb4, 0xc5, 0x45, 0x27, 0xad, 0x4b, 0xf6, 0x5f,
    0xb0, 0xbd, 0x15, 0x3c, 0x3c, 0x79, 0x55, 0x3c, 0x42, 0xc6
};

static const UCHAR bad_signature_all_padding[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x47, 0xe5, 0x9e, 0xdd, 0xbb, 0x22,
    0xb2, 0xef, 0x84, 0xc5, 0x60, 0xad, 0x32, 0x4a, 0x98, 0x5e, 0xab, 0xb8,
    0xbd, 0xe1, 0x1f, 0x29, 0x6d, 0x7e, 0x20, 0xb7, 0x03, 0x5d, 0x44, 0xee,
    0xc7, 0xe4, 0xdd, 0x2e, 0x47, 0xda, 0x20, 0x39, 0x04, 0xe4, 0x19, 0x0d,
    0xd3, 0x6c, 0x3a, 0xf5, 0x5a, 0x0c, 0x7c, 0x41, 0x69, 0xe2, 0xa8, 0xd8,
    0xbe, 0x15, 0x8d, 0xfb, 0x4e, 0xb4, 0x3c, 0x7c, 0x6f, 0x76, 0x5e, 0x34,
    0x49, 0x5f, 0xf2, 0x5a, 0xda, 0x4f, 0xb9, 0x5e, 0xa6, 0x60, 0xec, 0x3e,
    0x4c, 0x8e, 0xc9, 0xb9, 0xd0, 0x8b, 0xce, 0xb7, 0x1e, 0x0f, 0xf0, 0x2b,
    0xba, 0x01, 0x1d, 0x17, 0xc0, 0x8c, 0xe6, 0x63, 0xa1, 0x33, 0x52, 0xd8,
    0x91, 0x89, 0x64, 0x45, 0x64, 0xf1, 0x8a, 0x83, 0x67, 0xfb, 0x82, 0x78,
    0x81, 0xbe, 0x67, 0x45, 0x9c, 0x5b, 0xff, 0xb5, 0xc5, 0xe8, 0x64, 0xca,
    0xd0, 0x9a, 0x5b, 0x88, 0x9a, 0x9e, 0x25, 0x4d, 0x62, 0x35, 0xc1, 0xdb,
    0xac, 0xb8, 0xe1, 0x7e, 0xc4, 0xb4, 0x40, 0xb6, 0x02, 0xb8, 0x8a, 0x38,
    0x0a, 0xcf, 0x13, 0xc0, 0xec, 0x07, 0x5a, 0xce, 0x9f, 0x49, 0x4d, 0xfb,
    0xe5, 0xf4, 0x63, 0xc7, 0x3a, 0x32, 0x66, 0xee, 0xbe, 0x62, 0xf8, 0x59,
    0x8b, 0x88, 0xf0, 0xba, 0x76, 0xb3, 0xa6, 0xc7, 0xc2, 0xae, 0x83, 0xd8,
    0xd1, 0x6c, 0x93, 0xbc, 0xfc, 0x25, 0xf8, 0x96, 0x35, 0x12, 0x83, 0x82,
    0x5f, 0x26, 0xf9, 0x36, 0xda, 0x3f, 0x59, 0x9a, 0x66, 0xbc, 0x51, 0x5b,
    0x00, 0xe9, 0x29, 0xf2, 0x6c, 0xf4, 0xe9, 0x29, 0x33, 0xdb, 0x3e, 0x47,
    0x50, 0x7e, 0x59, 0x54, 0x15, 0x6f, 0xca, 0x7f, 0xaa, 0x8d, 0x7e, 0xfe,
    0xca, 0x41, 0xfc, 0xa5, 0xbc, 0x67, 0x94, 0x67, 0x57, 0x50, 0x6e, 0x15,
    0x94, 0x82, 0x63, 0xb3, 0x54, 0xf1, 0x81, 0xe7, 0xfa, 0xac
};

static const UCHAR bad_signature_seq_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x7b, 0xcb, 0xbe, 0x73, 0xf3, 0x1b,
    0x38, 0x6c, 0x5a, 0x62, 0xc7, 0x9a, 0x4d, 0x40, 0xc6, 0x4f, 0xdd, 0xac,
    0x52, 0x90, 0xe0, 0x9f, 0xde, 0x60, 0xda, 0x52, 0xa9, 0x43, 0x12, 0x0c,
    0xcb, 0x55, 0x11, 0x80, 0x91, 0xa4, 0x3d, 0xee, 0x73, 0x91, 0xdb, 0x37,
    0xbf, 0xfe, 0xa6, 0xa3, 0x60, 0x8d, 0xba, 0x8c, 0xbe, 0xe4, 0xf7, 0xd2,
    0xdb, 0x8c, 0x1f, 0x89, 0xe7, 0x94, 0xb8, 0xfe, 0x93, 0x23, 0x0d, 0x2a,
    0x2b, 0xe4, 0x91, 0x6d, 0x32, 0xd6, 0x37, 0xcf, 0xd0, 0x47, 0xca, 0x92,
    0x72, 0xd7, 0x63, 0x70, 0xcd, 0x07, 0x42, 0xf3, 0x94, 0xb8, 0x40, 0x7f,
    0x35, 0x3f, 0x33, 0x77, 0x03, 0x65, 0xb0, 0x26, 0x74, 0x54, 0xe4, 0x40,
    0xc3, 0x07, 0xee, 0x18, 0x48, 0x8f, 0xc2, 0x8d, 0x30, 0x9b, 0xd0, 0x32,
    0xbe, 0x60, 0x36, 0x29, 0x5f, 0x7b, 0xc1, 0x61, 0xc8, 0x12, 0x3a, 0xf0,
    0x6b, 0x06, 0x2e, 0x93, 0x0a, 0x57, 0x19, 0x2a, 0x95, 0xb0, 0xcc, 0x6a,
    0x67, 0x53, 0xb1, 0x77, 0x07, 0x57, 0xb4, 0x42, 0x79, 0x91, 0xe6, 0xae,
    0xfb, 0x15, 0x72, 0x38, 0xdb, 0x38, 0x65, 0x28, 0xee, 0x5a, 0xf2, 0xac,
    0x4c, 0x9a, 0x86, 0xb2, 0xa2, 0xcd, 0x32, 0x8f, 0x61, 0x95, 0xf0, 0xe7,
    0x83, 0x53, 0x57, 0x5b, 0xdb, 0xca, 0x43, 0xa9, 0x32, 0x33, 0x12, 0x55,
    0xeb, 0x4b, 0x27, 0xf7, 0x69, 0x32, 0xb8, 0x3b, 0x3c, 0x13, 0x37, 0xe3,
    0xb1, 0xa6, 0x72, 0xf6, 0xe1, 0x41, 0x1b, 0xb2, 0x21, 0xe3, 0x54, 0x2e,
    0x89, 0x6d, 0x07, 0x1f, 0x07, 0xc1, 0x7e, 0x24, 0x76, 0x5f, 0x78, 0x55,
    0x4e, 0x15, 0xef, 0x07, 0xff, 0x2e, 0x89, 0xda, 0x17, 0x6d, 0x55, 0x9d,
    0x5a, 0xd6, 0xc2, 0x3e, 0x73, 0x58, 0xd3, 0x80, 0x85, 0xaf, 0x2e, 0x2d,
    0x87, 0x30, 0x0d, 0x79, 0x33, 0x18, 0x5f, 0x79, 0x50, 0xca
};

static const UCHAR bad_signature_oid_seq_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x1d, 0x6d, 0xfb, 0x9e, 0x85, 0x08,
    0xb3, 0x28, 0x71, 0xda, 0x0e, 0x5a, 0x72, 0x0c, 0x9f, 0x2a, 0xfc, 0xaa,
    0x19, 0x05, 0x81, 0xf6, 0x88, 0x26, 0x49, 0x7d, 0x5d, 0x63, 0x06, 0x1c,
    0xc2, 0x89, 0x7e, 0x93, 0x5a, 0xd6, 0x7e, 0xc2, 0x8b, 0x83, 0xde, 0x3f,
    0xf7, 0xf9, 0x58, 0x64, 0xed, 0xa5, 0x8c, 0xdb, 0x81, 0x97, 0x43, 0x04,
    0xaa, 0x40, 0x73, 0xa8, 0x61, 0x3c, 0xd4, 0x82, 0x3e, 0x2c, 0x27, 0x8c,
    0x79, 0xe8, 0x80, 0x49, 0xef, 0xfd, 0x58, 0xfb, 0xe7, 0xb4, 0x95, 0x42,
    0x86, 0xe3, 0x97, 0x26, 0x25, 0xac, 0x9b, 0x8e, 0xbf, 0x85, 0x6a, 0x48,
    0x12, 0x1c, 0x6b, 0x11, 0x2c, 0x40, 0xd9, 0xc4, 0xb0, 0x59, 0xe0, 0xac,
    0x7f, 0x36, 0x00, 0x12, 0x6c, 0x55, 0xfa, 0xa4, 0x90, 0x81, 0x66, 0xa5,
    0x6b, 0x55, 0x38, 0x4b, 0xe7, 0x16, 0x1a, 0xcd, 0xd9, 0x33, 0x98, 0xb5,
    0x06, 0x3e, 0x50, 0xf6, 0x04, 0x2c, 0xfb, 0x50, 0x5a, 0x10, 0x04, 0xea,
    0x6b, 0x92, 0x1c, 0xf9, 0x28, 0xdd, 0x53, 0x94, 0x23, 0xc5, 0x7f, 0x05,
    0xf4, 0x4a, 0x52, 0xe9, 0x98, 0x09, 0x93, 0xa8, 0x79, 0xea, 0x4a, 0xbd,
    0x8e, 0xd2, 0xa8, 0x54, 0xda, 0x16, 0xdc, 0xeb, 0xaf, 0x22, 0x13, 0x90,
    0x45, 0xb3, 0x56, 0xb9, 0x6e, 0x49, 0xc6, 0x78, 0x34, 0x6f, 0xa8, 0x0c,
    0x6d, 0x78, 0xe8, 0xc5, 0x9a, 0x27, 0x32, 0x19, 0xf8, 0xef, 0x83, 0x39,
    0xec, 0x86, 0xaa, 0xe4, 0x5f, 0x6f, 0x96, 0xad, 0x65, 0x2c, 0xbc, 0x31,
    0xde, 0x55, 0x48, 0x29, 0x6b, 0x9a, 0xf7, 0xaa, 0xc2, 0x10, 0xeb, 0x1a,
    0x66, 0x59, 0xe1, 0xc3, 0x01, 0x8d, 0x3c, 0x73, 0x3e, 0x7f, 0x42, 0x08,
    0x2c, 0x86, 0x6b, 0xb7, 0x74, 0x1f, 0x71, 0xfe, 0x57, 0x50, 0xfa, 0xb2,
    0xdd, 0xe4, 0x88, 0xdd, 0x99, 0xfd, 0x02, 0xb6, 0xef, 0x4d
};

static const UCHAR bad_signature_oid_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x18, 0x3a, 0xfc, 0x83, 0x8f, 0xca,
    0x89, 0xa1, 0xb9, 0x6c, 0x99, 0xb4, 0xe6, 0x2e, 0x69, 0xa4, 0xed, 0x16,
    0x1e, 0x5d, 0x31, 0x11, 0x2b, 0x8f, 0xbe, 0xeb, 0xba, 0x01, 0xc2, 0x6b,
    0x89, 0x31, 0xa1, 0xb9, 0x5d, 0x0a, 0x45, 0x1a, 0x61, 0x5d, 0xbb, 0xfc,
    0x75, 0x77, 0x93, 0x5b, 0x87, 0x62, 0x91, 0x9a, 0x38, 0x31, 0x97, 0x78,
    0xa0, 0xf5, 0x80, 0x1b, 0x18, 0x33, 0x20, 0x8c, 0x2c, 0x39, 0xe9, 0x0e,
    0x01, 0x5a, 0x10, 0x96, 0x92, 0x45, 0xb2, 0x57, 0x52, 0x3d, 0x62, 0x0b,
    0xee, 0xf0, 0xf9, 0x7d, 0x23, 0x20, 0xbb, 0x32, 0xb0, 0x60, 0x71, 0xa1,
    0x17, 0xd6, 0x0f, 0x89, 0xb5, 0x8e, 0x5d, 0x8d, 0xc0, 0x60, 0x1a, 0xef,
    0xc3, 0x03, 0xe0, 0x0f, 0xdb, 0xdb, 0xc9, 0x6f, 0x70, 0x40, 0x3d, 0x1a,
    0xaf, 0x35, 0xb7, 0x69, 0xbd, 0x5a, 0x42, 0x59, 0xb2, 0x66, 0x0b, 0x38,
    0xef, 0x8f, 0xa7, 0x66, 0x48, 0x0e, 0x5c, 0x39, 0x7e, 0x39, 0x5a, 0x2a,
    0x73, 0x29, 0x58, 0xf3, 0x10, 0xda, 0x35, 0x68, 0xe4, 0x6a, 0x3b, 0x06,
    0x78, 0x3d, 0xc3, 0x99, 0xe2, 0x88, 0x61, 0x97, 0x00, 0x8c, 0xe8, 0x93,
    0x1c, 0x62, 0x0b, 0x73, 0xf0, 0x84, 0x9b, 0xa4, 0x9f, 0xbd, 0x78, 0xc0,
    0x5d, 0x10, 0x41, 0x02, 0x6c, 0xf9, 0x90, 0x92, 0x8e, 0x2a, 0x79, 0x49,
    0x14, 0x98, 0x65, 0xa2, 0xfc, 0x9a, 0xaa, 0x7d, 0xc4, 0xab, 0x64, 0x8b,
    0xfe, 0xa6, 0xcc, 0xcd, 0xa4, 0xf0, 0x95, 0x74, 0xe4, 0x20, 0x75, 0xd1,
    0x61, 0x02, 0x3e, 0x1c, 0xdd, 0x27, 0x2b, 0xaf, 0xac, 0xf8, 0x1b, 0x85,
    0xa1, 0xd3, 0xd7, 0x21, 0x57, 0x24, 0x4e, 0xa4, 0x7f, 0x2b, 0x9e, 0x0a,
    0x45, 0x5c, 0x96, 0x81, 0x09, 0xa8, 0x5d, 0x0c, 0x39, 0x6c, 0x78, 0xb5,
    0x0c, 0xb1, 0x3b, 0x08, 0x73, 0xd3, 0xcd, 0xae, 0xf1, 0x77
};

static const UCHAR bad_signature_octstr_tag[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0xb6, 0x09, 0x36, 0xf7, 0x8b, 0x23,
    0x02, 0x82, 0x65, 0x78, 0x5e, 0xba, 0xdc, 0x29, 0x9e, 0x4b, 0x47, 0x48,
    0x75, 0x83, 0x9b, 0x99, 0x0d, 0xd3, 0xa6, 0x5d, 0xba, 0x57, 0x01, 0x9d,
    0xef, 0x5a, 0x65, 0xd5, 0x74, 0x23, 0x54, 0xef, 0xe3, 0x2a, 0xcb, 0x21,
    0xeb, 0x01, 0x4e, 0xec, 0x12, 0xdd, 0xc6, 0x56, 0x2f, 0x45, 0xbd, 0xdd,
    0x6d, 0x05, 0xd2, 0x8c, 0xc8, 0x40, 0xf0, 0xd2, 0x13, 0xdf, 0x2b, 0x08,
    0xa5, 0xff, 0xe4, 0xfe, 0xe5, 0x43, 0x58, 0x70, 0x1a, 0xd6, 0xac, 0xf2,
    0x3a, 0x29, 0x87, 0xda, 0xcb, 0xe7, 0x59, 0x46, 0x4a, 0x4b, 0x49, 0x10,
    0x8b, 0x42, 0xa6, 0x01, 0xad, 0xa0, 0xc4, 0xb7, 0xe6, 0xe5, 0x39, 0x83,
    0x11, 0x2d, 0xbd, 0xbd, 0x0e, 0x00, 0x7b, 0x4b, 0x74, 0x56, 0xe0, 0xc8,
    0x5f, 0x3a, 0x50, 0xa4, 0x56, 0x8f, 0x9e, 0xff, 0xd4, 0xdf, 0x74, 0x3e,
    0x55, 0x60, 0x69, 0xb5, 0xeb, 0xed, 0x8b, 0x3e, 0x87, 0x1d, 0x14, 0x02,
    0xe9, 0x9e, 0x0b, 0x49, 0x07, 0xfa, 0x27, 0x75, 0x49, 0xc3, 0x36, 0x44,
    0xab, 0x83, 0x05, 0x67, 0x50, 0x96, 0x7b, 0x04, 0x11, 0x86, 0x20, 0x0c,
    0x44, 0xc9, 0x7b, 0xba, 0xd7, 0xeb, 0xe7, 0x68, 0xe9, 0x57, 0x6d, 0x96,
    0x06, 0x35, 0x41, 0xaf, 0xe6, 0x7a, 0x7b, 0xf2, 0x49, 0x1c, 0xd2, 0x61,
    0x90, 0x3a, 0xb5, 0x57, 0x86, 0x44, 0x9b, 0x96, 0x82, 0xe0, 0x28, 0x49,
    0x83, 0x49, 0xd1, 0x36, 0xba, 0x1a, 0x8e, 0x37, 0xe7, 0xd9, 0xdd, 0x75,
    0x87, 0x2a, 0xb0, 0xc6, 0xc1, 0x95, 0x77, 0xd7, 0x17, 0x3c, 0x03, 0x4f,
    0xf5, 0x83, 0x5f, 0xac, 0xe8, 0xc0, 0x34, 0x3c, 0xae, 0x26, 0x81, 0x3a,
    0x32, 0x88, 0xed, 0x69, 0x28, 0x14, 0x9e, 0x37, 0xa1, 0x91, 0xed, 0x1c,
    0x1b, 0x6c, 0xfc, 0x20, 0x91, 0xcb, 0x8e, 0x07, 0xf4, 0x94
};

static const UCHAR bad_signature_hash_length[] = {
    0x30, 0x82, 0x01, 0xb6, 0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05, 0x00, 0x30, 0x52,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x17, 0x0d,
    0x31, 0x37, 0x31, 0x31, 0x31, 0x30, 0x30, 0x37, 0x32, 0x35, 0x33, 0x34,
    0x5a, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x32, 0x31, 0x30, 0x30, 0x37, 0x32,
    0x35, 0x33, 0x34, 0x5a, 0x30, 0x1c, 0x30, 0x1a, 0x02, 0x09, 0x00, 0xe8,
    0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x59, 0x17, 0x0d, 0x31, 0x37, 0x31,
    0x31, 0x31, 0x30, 0x30, 0x37, 0x31, 0x33, 0x34, 0x34, 0x5a, 0x30, 0x0d,
    0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04, 0x05,
    0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x23, 0xe2, 0xe7, 0xc9, 0xe4, 0xbd,
    0x7b, 0x20, 0xb0, 0x3a, 0x85, 0x2f, 0xdb, 0xeb, 0xf3, 0x22, 0x02, 0x5e,
    0xc2, 0x78, 0x75, 0xb9, 0x36, 0x33, 0x6e, 0x43, 0x4f, 0x3f, 0x14, 0x2e,
    0xbc, 0xc9, 0x9b, 0x75, 0x2f, 0xf5, 0xe0, 0x6f, 0x7f, 0xbf, 0x90, 0xa0,
    0x0c, 0x86, 0xbd, 0xdf, 0xc1, 0xf6, 0x3c, 0x99, 0xa9, 0x8f, 0x00, 0x91,
    0xe3, 0xb9, 0x71, 0xec, 0x01, 0x4c, 0xd1, 0xb9, 0x40, 0x16, 0x5c, 0xad,
    0x58, 0xe1, 0x7f, 0x03, 0x54, 0xe9, 0x36, 0xb8, 0x00, 0x32, 0xb5, 0x62,
    0x4f, 0xc2, 0xb3, 0x3d, 0x99, 0x8a, 0x8c, 0x60, 0xad, 0x39, 0x94, 0xb4,
    0xf1, 0x2c, 0xf6, 0xc7, 0x6a, 0x1f, 0x27, 0xbb, 0x85, 0x80, 0x74, 0x07,
    0x5e, 0x08, 0x48, 0x15, 0x7c, 0x45, 0x2f, 0xb7, 0x71, 0xd4, 0xff, 0xfe,
    0x65, 0x6b, 0x3a, 0xc5, 0x40, 0xff, 0xc6, 0xd5, 0x67, 0xf5, 0x20, 0xb5,
    0x10, 0x97, 0xd6, 0x26, 0xf2, 0xa9, 0xea, 0x64, 0xf3, 0x23, 0x81, 0x96,
    0xd0, 0xd0, 0xa5, 0x9a, 0x6d, 0xb5, 0x1d, 0xf4, 0x46, 0x38, 0xdb, 0x46,
    0xe0, 0xb5, 0xbb, 0x5e, 0x6a, 0xee, 0x02, 0xbe, 0x79, 0xe4, 0xc6, 0x56,
    0xaa, 0x74, 0x68, 0xe3, 0x72, 0x3c, 0x03, 0xca, 0xe6, 0xf6, 0xc0, 0x0f,
    0x03, 0xe3, 0x75, 0x72, 0xbc, 0xe8, 0x0b, 0x37, 0x44, 0x61, 0xf0, 0xd7,
    0x3a, 0xe3, 0x21, 0x54, 0x63, 0x88, 0x1b, 0x2b, 0x20, 0x41, 0x9c, 0xcc,
    0xdd, 0xa5, 0x9e, 0xbc, 0x37, 0x60, 0x2b, 0xd3, 0x36, 0x11, 0x88, 0x3e,
    0x22, 0xcc, 0x53, 0x17, 0x92, 0x5d, 0xfa, 0x69, 0x42, 0xe0, 0x73, 0x8f,
    0x50, 0x78, 0x8d, 0x53, 0x5a, 0xe4, 0x7c, 0xad, 0xa4, 0x4c, 0x3f, 0x4c,
    0x8a, 0x2e, 0xf2, 0x24, 0x21, 0x50, 0x38, 0x96, 0x1a, 0x28, 0xda, 0x29,
    0x26, 0x03, 0xd0, 0x3e, 0xcb, 0xef, 0x8a, 0x68, 0xe4, 0xba
};

static const UCHAR TestCA2_der[] = {
    0x30, 0x82, 0x03, 0x22, 0x30, 0x82, 0x02, 0x0a, 0x02, 0x09, 0x00, 0xc2,
    0xbd, 0xd4, 0x27, 0xe7, 0x03, 0x3e, 0x83, 0x30, 0x0d, 0x06, 0x09, 0x2a,
    0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x53,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
    0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
    0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
    0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
    0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
    0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55,
    0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x32, 0x30,
    0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x31, 0x35, 0x30, 0x36, 0x35,
    0x35, 0x35, 0x31, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x39, 0x30, 0x34,
    0x30, 0x36, 0x35, 0x35, 0x35, 0x31, 0x5a, 0x30, 0x53, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45,
    0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02,
    0x45, 0x4c, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x07, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x32, 0x30, 0x82, 0x01, 0x22,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a,
    0x02, 0x82, 0x01, 0x01, 0x00, 0x9d, 0x4c, 0x91, 0x4d, 0x83, 0xff, 0x5d,
    0x9f, 0x19, 0xec, 0xb8, 0x7d, 0xa2, 0x13, 0x49, 0x94, 0x03, 0x12, 0xa0,
    0x47, 0x68, 0x7c, 0x56, 0xbf, 0x5b, 0x04, 0xd0, 0xee, 0xa9, 0x9a, 0xb1,
    0x25, 0x33, 0x4c, 0xc6, 0x94, 0x71, 0x38, 0xa9, 0x0b, 0x43, 0x8d, 0x19,
    0x1b, 0x1f, 0xa2, 0x14, 0x16, 0xcf, 0x05, 0x4f, 0xf4, 0x67, 0xc3, 0x86,
    0x1c, 0x58, 0x2e, 0x2e, 0x85, 0xf4, 0x9b, 0x68, 0x9c, 0x9d, 0xa5, 0x36,
    0x98, 0x17, 0x0f, 0x0c, 0x82, 0x3e, 0xbf, 0xd5, 0xa2, 0xbb, 0x7d, 0xd4,
    0x97, 0x23, 0xdd, 0xfe, 0x59, 0x05, 0x06, 0x6b, 0xaa, 0xd2, 0x57, 0x8d,
    0xcc, 0xb0, 0x4f, 0x08, 0xd8, 0x79, 0x32, 0xad, 0xf3, 0x11, 0x92, 0x2f,
    0x47, 0x8c, 0x70, 0xda, 0x5d, 0x22, 0x0f, 0x80, 0xf1, 0xd2, 0x68, 0x88,
    0x9a, 0xdb, 0xf9, 0x44, 0xe5, 0xbf, 0x7c, 0x2d, 0xdf, 0x66, 0x60, 0xfb,
    0xb0, 0xdd, 0x77, 0x27, 0x6c, 0x18, 0x1f, 0xb6, 0xe5, 0x93, 0xde, 0x4a,
    0x0b, 0x5a, 0xea, 0x59, 0x37, 0x9a, 0x75, 0x7d, 0x25, 0xa7, 0x16, 0x1f,
    0x49, 0x03, 0x65, 0x0a, 0x95, 0xa1, 0x3d, 0x92, 0x59, 0x60, 0x9d, 0xe6,
    0x43, 0xaa, 0xd7, 0xbf, 0x25, 0x02, 0xa0, 0xaa, 0xda, 0xf3, 0x1f, 0xb2,
    0x70, 0x27, 0x69, 0xdd, 0xd4, 0xdf, 0x74, 0xaf, 0x3a, 0xc9, 0x1c, 0xe7,
    0x35, 0x0e, 0x3a, 0x6b, 0x18, 0x89, 0xe9, 0x31, 0x7d, 0x5b, 0xa4, 0x61,
    0xee, 0x68, 0xc9, 0xd4, 0xde, 0xf2, 0xda, 0x52, 0xfc, 0xf0, 0x15, 0xef,
    0x12, 0xf6, 0xb1, 0x60, 0x01, 0xc2, 0xaf, 0x68, 0x16, 0xfc, 0x61, 0xf5,
    0x96, 0x78, 0xd1, 0x27, 0x2c, 0xd3, 0xbb, 0x74, 0x34, 0xd4, 0x4c, 0x23,
    0x7d, 0x94, 0x19, 0x04, 0xc5, 0x4e, 0xdb, 0x8a, 0x13, 0xa9, 0xa7, 0x05,
    0x79, 0xfb, 0x0e, 0x0f, 0x0d, 0x03, 0xa5, 0x66, 0x63, 0x02, 0x03, 0x01,
    0x00, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d,
    0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x4c, 0x1e,
    0x06, 0x80, 0xcf, 0x12, 0x97, 0x45, 0xe0, 0xd8, 0xdc, 0x24, 0xfe, 0x91,
    0x55, 0x5f, 0x6a, 0xad, 0x77, 0xb2, 0x96, 0x73, 0x4d, 0xb7, 0x56, 0x53,
    0x86, 0x31, 0xbd, 0xb8, 0x1b, 0xd3, 0xca, 0x17, 0xc5, 0x12, 0x18, 0x9b,
    0xcd, 0xab, 0x93, 0xae, 0xa8, 0x89, 0xe6, 0x6c, 0x73, 0xc8, 0x73, 0x09,
    0xe5, 0x00, 0xd5, 0x69, 0x4a, 0x03, 0x7a, 0x14, 0x10, 0x26, 0x44, 0x7f,
    0x35, 0xe0, 0x31, 0x63, 0x85, 0x13, 0xb4, 0x43, 0xed, 0xbb, 0xb9, 0xa5,
    0xaf, 0x48, 0x70, 0x19, 0xca, 0x0e, 0x5b, 0xcb, 0x77, 0x0f, 0xd6, 0x91,
    0x41, 0xe3, 0xcc, 0x6a, 0xd5, 0x3c, 0x1a, 0x8a, 0xfb, 0x00, 0x30, 0x9f,
    0x5e, 0x32, 0xfe, 0x19, 0x1c, 0x0c, 0x8e, 0x51, 0x8d, 0xc2, 0x09, 0xff,
    0xaa, 0xcc, 0x56, 0xd8, 0x3c, 0x94, 0x35, 0xff, 0x3b, 0x9b, 0xcb, 0xa6,
    0xe7, 0x08, 0x17, 0x0e, 0x32, 0x14, 0xd2, 0x50, 0x7c, 0x67, 0xf0, 0xd9,
    0xa3, 0xc5, 0xa1, 0xcf, 0x60, 0x6e, 0x03, 0xa1, 0xbf, 0x16, 0x36, 0x5f,
    0xa5, 0xac, 0x64, 0x35, 0x1a, 0xba, 0xc8, 0x68, 0x9c, 0x37, 0x70, 0xad,
    0x80, 0xd8, 0x96, 0x06, 0xc4, 0xad, 0xa2, 0xa3, 0xc5, 0xc9, 0x1d, 0xf3,
    0x2c, 0x9a, 0xde, 0x7e, 0x89, 0x53, 0xb1, 0x29, 0xa9, 0xa6, 0x39, 0xf3,
    0x2c, 0x86, 0xdc, 0x04, 0x82, 0x35, 0x06, 0x4a, 0x46, 0xfd, 0x7a, 0x15,
    0x27, 0x4e, 0x0a, 0xb0, 0x7a, 0x1e, 0xd1, 0x72, 0xee, 0x54, 0xeb, 0xba,
    0xd4, 0x4b, 0x2e, 0xf0, 0x67, 0x21, 0xf3, 0x95, 0xa5, 0x1c, 0x14, 0x01,
    0x30, 0xd2, 0xc2, 0x84, 0xd5, 0xd7, 0x7b, 0x7b, 0xb9, 0x80, 0x88, 0x8d,
    0x93, 0xc0, 0x9f, 0xe2, 0xa2, 0x81, 0x42, 0x69, 0x00, 0x26, 0xf0, 0xad,
    0x21, 0x39, 0x1f, 0x33, 0xf9, 0x16, 0xaa, 0x95, 0x31, 0x89, 0x7f, 0x77,
    0xc4, 0x9a
};

static const UCHAR cert_signature_seq_type[] = {
    0x30, 0x82, 0x03, 0x62, 0x30, 0x82, 0x02, 0x4a, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xff,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x05, 0x05, 0x00, 0x30, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10,
    0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31,
    0x31, 0x36, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a, 0x17, 0x0d, 0x31,
    0x39, 0x30, 0x33, 0x33, 0x31, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a,
    0x30, 0x47, 0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
    0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xc8, 0xad,
    0xd6, 0xb3, 0xf3, 0xfb, 0x4c, 0x7c, 0x9c, 0xa4, 0x3a, 0x9a, 0x38, 0xc2,
    0x0e, 0x95, 0xe3, 0xda, 0xca, 0xea, 0xdf, 0x1f, 0x84, 0x2e, 0xb3, 0xae,
    0xb1, 0x78, 0x40, 0x0d, 0xeb, 0xee, 0x60, 0xf0, 0xd6, 0x27, 0x19, 0xa7,
    0x57, 0xe1, 0x54, 0x5f, 0x9f, 0x73, 0xc8, 0x00, 0x5d, 0xff, 0x53, 0xb2,
    0xda, 0x99, 0x67, 0x12, 0xe9, 0xdb, 0xa0, 0xdd, 0xb1, 0xa8, 0xcd, 0xf8,
    0x2b, 0x9b, 0x0a, 0xe6, 0x00, 0x91, 0x3e, 0xc9, 0x31, 0x72, 0xc5, 0x99,
    0x35, 0xeb, 0x84, 0x4d, 0x93, 0xda, 0xa8, 0x6b, 0xb8, 0xe2, 0x23, 0x72,
    0x9e, 0x0a, 0x0c, 0xec, 0x65, 0xdb, 0x7a, 0x1a, 0xf7, 0xca, 0x29, 0x05,
    0x82, 0xdd, 0x4d, 0xe0, 0x38, 0xcd, 0xf6, 0xbd, 0xfe, 0x13, 0xd9, 0x8f,
    0x6d, 0x8f, 0xdf, 0x60, 0x7a, 0x83, 0xe8, 0xe5, 0x2c, 0xb5, 0xa1, 0xbb,
    0x48, 0x1b, 0x7b, 0x53, 0x93, 0x58, 0x69, 0x7d, 0x12, 0x99, 0x6d, 0xe2,
    0x51, 0x18, 0x88, 0xe9, 0xa3, 0x7a, 0x39, 0xfd, 0x30, 0x12, 0x61, 0x20,
    0xc7, 0xc4, 0x3e, 0xe3, 0xfe, 0x7f, 0x0b, 0xc3, 0x71, 0x25, 0x7a, 0x37,
    0x21, 0x16, 0x97, 0x2b, 0x24, 0x09, 0x44, 0x8d, 0xbe, 0x47, 0xe6, 0x6d,
    0x0a, 0x9c, 0x30, 0xf8, 0x56, 0xc8, 0x42, 0xbc, 0xa8, 0xd2, 0xd7, 0x47,
    0xb4, 0x6f, 0x5a, 0xbf, 0xdd, 0xd4, 0x8f, 0xea, 0xb9, 0x44, 0xca, 0xa1,
    0x62, 0x35, 0xe9, 0x92, 0x13, 0x22, 0xb7, 0x1f, 0x1a, 0xd3, 0x26, 0xa4,
    0x8a, 0x1c, 0x19, 0x46, 0x09, 0x0a, 0xee, 0xe2, 0x93, 0x1b, 0xab, 0x1e,
    0x44, 0x32, 0x26, 0xa6, 0x64, 0x1e, 0x47, 0xa0, 0x6e, 0xce, 0x15, 0xd2,
    0x31, 0x38, 0xc4, 0xb4, 0x0e, 0x89, 0x10, 0xd6, 0xd7, 0x3d, 0x56, 0x87,
    0xed, 0x32, 0x29, 0x59, 0x8f, 0xbb, 0xab, 0x1e, 0xca, 0x25, 0xb6, 0x0d,
    0x5f, 0x6f, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x45, 0x30, 0x43, 0x30,
    0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3a, 0xd7,
    0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b, 0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4,
    0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d,
    0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02,
    0x01, 0x00, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff,
    0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x04, 0x23, 0xbd, 0x49, 0x74, 0x0f, 0x9b, 0x12, 0x80, 0x75,
    0x48, 0x47, 0x91, 0xb8, 0x7a, 0x8f, 0x5d, 0xb1, 0x3f, 0xe7, 0x2f, 0xfa,
    0x9d, 0xde, 0xe4, 0xfe, 0x96, 0x82, 0x3a, 0x08, 0x6c, 0x81, 0x76, 0xf7,
    0x3c, 0x7d, 0xd3, 0xbd, 0x73, 0x17, 0xa9, 0xf0, 0xf2, 0x2d, 0x5b, 0x59,
    0xb9, 0x53, 0xa9, 0x7b, 0x7b, 0x3d, 0x3f, 0xd8, 0x9f, 0xab, 0x35, 0xd0,
    0x5d, 0xd8, 0x94, 0xaa, 0xc1, 0x93, 0x74, 0x49, 0x15, 0x0c, 0xb8, 0xce,
    0x10, 0x70, 0x5f, 0xf9, 0xa0, 0xeb, 0x9d, 0xc2, 0x34, 0x93, 0x88, 0x2e,
    0x10, 0x97, 0x00, 0xf1, 0xb3, 0xf8, 0x4e, 0xf1, 0x70, 0xce, 0xbc, 0x13,
    0x5a, 0x49, 0xac, 0xbf, 0x2f, 0xca, 0xd2, 0x51, 0x04, 0xcb, 0x61, 0xdf,
    0x93, 0xae, 0xd6, 0x50, 0xca, 0x5d, 0x73, 0x2a, 0x5a, 0x2c, 0xa4, 0xef,
    0x7c, 0xa1, 0x97, 0x64, 0xa7, 0x83, 0xbc, 0xe0, 0xb0, 0x5c, 0xad, 0x94,
    0x74, 0x2e, 0xd8, 0xb7, 0x85, 0xda, 0x3d, 0x50, 0x28, 0x8f, 0x89, 0x71,
    0x42, 0xa0, 0x1c, 0xdd, 0xac, 0x9f, 0x08, 0x5f, 0xde, 0xb8, 0x7d, 0x7c,
    0x41, 0xe2, 0x1a, 0x53, 0x8a, 0xef, 0xac, 0xb5, 0x03, 0x9f, 0xe8, 0x87,
    0xfa, 0x1a, 0xa0, 0x8c, 0x33, 0x4f, 0xc2, 0x9f, 0xff, 0x42, 0xd3, 0x4e,
    0xe3, 0xcd, 0x36, 0x6a, 0xef, 0xce, 0xdb, 0x61, 0x98, 0x08, 0xb3, 0xf2,
    0xc4, 0xe2, 0x47, 0xbd, 0xc7, 0x1e, 0x40, 0xae, 0xfa, 0xff, 0x24, 0x73,
    0x55, 0x3b, 0xbb, 0x91, 0xc9, 0xcd, 0x78, 0xab, 0x1c, 0x33, 0x5f, 0x3b,
    0x91, 0x2c, 0x37, 0xfa, 0xc2, 0x9b, 0x9e, 0x7e, 0xd9, 0xe8, 0xec, 0x57,
    0xa3, 0xa0, 0x8a, 0x8b, 0xf9, 0xdb, 0x2e, 0x7f, 0x68, 0xb2, 0x0d, 0x92,
    0x44, 0x68, 0x22, 0x93, 0xff, 0xed, 0xef, 0xc8, 0xd4, 0x7c, 0x9f, 0x50,
    0xe3, 0xc7, 0x0f, 0x75, 0x47, 0x4b
};

static const UCHAR cert_signature_hash_length[] = {
    0x30, 0x82, 0x03, 0x62, 0x30, 0x82, 0x02, 0x4a, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xff,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x05, 0x05, 0x00, 0x30, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10,
    0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31,
    0x31, 0x36, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a, 0x17, 0x0d, 0x31,
    0x39, 0x30, 0x33, 0x33, 0x31, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a,
    0x30, 0x47, 0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
    0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xc8, 0xad,
    0xd6, 0xb3, 0xf3, 0xfb, 0x4c, 0x7c, 0x9c, 0xa4, 0x3a, 0x9a, 0x38, 0xc2,
    0x0e, 0x95, 0xe3, 0xda, 0xca, 0xea, 0xdf, 0x1f, 0x84, 0x2e, 0xb3, 0xae,
    0xb1, 0x78, 0x40, 0x0d, 0xeb, 0xee, 0x60, 0xf0, 0xd6, 0x27, 0x19, 0xa7,
    0x57, 0xe1, 0x54, 0x5f, 0x9f, 0x73, 0xc8, 0x00, 0x5d, 0xff, 0x53, 0xb2,
    0xda, 0x99, 0x67, 0x12, 0xe9, 0xdb, 0xa0, 0xdd, 0xb1, 0xa8, 0xcd, 0xf8,
    0x2b, 0x9b, 0x0a, 0xe6, 0x00, 0x91, 0x3e, 0xc9, 0x31, 0x72, 0xc5, 0x99,
    0x35, 0xeb, 0x84, 0x4d, 0x93, 0xda, 0xa8, 0x6b, 0xb8, 0xe2, 0x23, 0x72,
    0x9e, 0x0a, 0x0c, 0xec, 0x65, 0xdb, 0x7a, 0x1a, 0xf7, 0xca, 0x29, 0x05,
    0x82, 0xdd, 0x4d, 0xe0, 0x38, 0xcd, 0xf6, 0xbd, 0xfe, 0x13, 0xd9, 0x8f,
    0x6d, 0x8f, 0xdf, 0x60, 0x7a, 0x83, 0xe8, 0xe5, 0x2c, 0xb5, 0xa1, 0xbb,
    0x48, 0x1b, 0x7b, 0x53, 0x93, 0x58, 0x69, 0x7d, 0x12, 0x99, 0x6d, 0xe2,
    0x51, 0x18, 0x88, 0xe9, 0xa3, 0x7a, 0x39, 0xfd, 0x30, 0x12, 0x61, 0x20,
    0xc7, 0xc4, 0x3e, 0xe3, 0xfe, 0x7f, 0x0b, 0xc3, 0x71, 0x25, 0x7a, 0x37,
    0x21, 0x16, 0x97, 0x2b, 0x24, 0x09, 0x44, 0x8d, 0xbe, 0x47, 0xe6, 0x6d,
    0x0a, 0x9c, 0x30, 0xf8, 0x56, 0xc8, 0x42, 0xbc, 0xa8, 0xd2, 0xd7, 0x47,
    0xb4, 0x6f, 0x5a, 0xbf, 0xdd, 0xd4, 0x8f, 0xea, 0xb9, 0x44, 0xca, 0xa1,
    0x62, 0x35, 0xe9, 0x92, 0x13, 0x22, 0xb7, 0x1f, 0x1a, 0xd3, 0x26, 0xa4,
    0x8a, 0x1c, 0x19, 0x46, 0x09, 0x0a, 0xee, 0xe2, 0x93, 0x1b, 0xab, 0x1e,
    0x44, 0x32, 0x26, 0xa6, 0x64, 0x1e, 0x47, 0xa0, 0x6e, 0xce, 0x15, 0xd2,
    0x31, 0x38, 0xc4, 0xb4, 0x0e, 0x89, 0x10, 0xd6, 0xd7, 0x3d, 0x56, 0x87,
    0xed, 0x32, 0x29, 0x59, 0x8f, 0xbb, 0xab, 0x1e, 0xca, 0x25, 0xb6, 0x0d,
    0x5f, 0x6f, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x45, 0x30, 0x43, 0x30,
    0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3a, 0xd7,
    0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b, 0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4,
    0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d,
    0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02,
    0x01, 0x00, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff,
    0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x60, 0x42, 0xc3, 0xc1, 0xbb, 0x28, 0x68, 0x41, 0x37, 0x60,
    0x3a, 0xe5, 0x58, 0xc6, 0x48, 0xeb, 0x22, 0x43, 0x78, 0x65, 0xba, 0x03,
    0x00, 0xa0, 0x7f, 0xdc, 0x80, 0x4b, 0xb0, 0x25, 0xc7, 0x0e, 0x29, 0x02,
    0xd5, 0xa5, 0xf4, 0x29, 0x81, 0x03, 0x0d, 0x3d, 0xb5, 0x18, 0xd5, 0x04,
    0x42, 0x1b, 0x16, 0xd9, 0xcd, 0x61, 0xe8, 0x3d, 0x3f, 0x05, 0xa8, 0x2c,
    0x39, 0x6c, 0xd0, 0xf4, 0x0f, 0xa0, 0xe6, 0xd1, 0x2e, 0xe2, 0xd2, 0x5e,
    0x10, 0x36, 0x52, 0x8e, 0x52, 0x21, 0x3c, 0xca, 0x8a, 0x18, 0xc0, 0x5e,
    0x06, 0x3e, 0x3e, 0xfc, 0xab, 0x6e, 0xca, 0xd9, 0x31, 0x72, 0x43, 0xf6,
    0x2a, 0xe6, 0xb1, 0x49, 0x1f, 0x56, 0xa3, 0xf3, 0xc1, 0xcd, 0xb1, 0xcd,
    0xfe, 0xe2, 0xc0, 0x2a, 0xe6, 0x70, 0xef, 0x33, 0x03, 0x79, 0xc3, 0xf1,
    0xdc, 0x32, 0x04, 0x9d, 0x3a, 0x36, 0x45, 0x06, 0xb9, 0x12, 0x66, 0xea,
    0xce, 0xe3, 0xc5, 0x9d, 0x04, 0x1d, 0x02, 0xda, 0x8e, 0x03, 0x1a, 0xf7,
    0x81, 0xf1, 0x49, 0xf8, 0x11, 0x0a, 0x41, 0x0e, 0xf1, 0xec, 0x41, 0xa2,
    0x0d, 0xf0, 0x42, 0x47, 0xc7, 0xda, 0x87, 0xa5, 0x5b, 0xb1, 0x4b, 0x03,
    0xcd, 0x5e, 0x93, 0xcd, 0x7a, 0xa0, 0xa7, 0xe6, 0xec, 0xf6, 0xeb, 0x95,
    0xa4, 0x80, 0x5a, 0xde, 0xe1, 0xc7, 0x63, 0xd9, 0x89, 0x65, 0x24, 0x48,
    0xab, 0x75, 0xe5, 0xfd, 0xa2, 0xd8, 0x10, 0xbb, 0x12, 0x8f, 0xd3, 0x87,
    0x0e, 0xc3, 0xcc, 0x8a, 0x52, 0x32, 0x87, 0x28, 0x2a, 0x5a, 0xfd, 0xe9,
    0xdc, 0xde, 0x39, 0x55, 0xc5, 0x2c, 0x1a, 0xfe, 0x4a, 0xd8, 0x46, 0x40,
    0x75, 0xa2, 0x45, 0xdb, 0xf5, 0xfa, 0xa1, 0x5a, 0x47, 0x4e, 0xca, 0xdd,
    0xe5, 0xf4, 0x1c, 0x85, 0x14, 0x84, 0x31, 0x74, 0xea, 0x20, 0xc9, 0xea,
    0x6a, 0x39, 0x5f, 0x4d, 0xc4, 0x4f
};

static const UCHAR TestIntm_wrong_signature_alg[] = {
    0x30, 0x82, 0x03, 0x62, 0x30, 0x82, 0x02, 0x4a, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xff,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x05, 0x05, 0x00, 0x30, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10,
    0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31,
    0x31, 0x36, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a, 0x17, 0x0d, 0x31,
    0x39, 0x30, 0x33, 0x33, 0x31, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a,
    0x30, 0x47, 0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
    0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xc8, 0xad,
    0xd6, 0xb3, 0xf3, 0xfb, 0x4c, 0x7c, 0x9c, 0xa4, 0x3a, 0x9a, 0x38, 0xc2,
    0x0e, 0x95, 0xe3, 0xda, 0xca, 0xea, 0xdf, 0x1f, 0x84, 0x2e, 0xb3, 0xae,
    0xb1, 0x78, 0x40, 0x0d, 0xeb, 0xee, 0x60, 0xf0, 0xd6, 0x27, 0x19, 0xa7,
    0x57, 0xe1, 0x54, 0x5f, 0x9f, 0x73, 0xc8, 0x00, 0x5d, 0xff, 0x53, 0xb2,
    0xda, 0x99, 0x67, 0x12, 0xe9, 0xdb, 0xa0, 0xdd, 0xb1, 0xa8, 0xcd, 0xf8,
    0x2b, 0x9b, 0x0a, 0xe6, 0x00, 0x91, 0x3e, 0xc9, 0x31, 0x72, 0xc5, 0x99,
    0x35, 0xeb, 0x84, 0x4d, 0x93, 0xda, 0xa8, 0x6b, 0xb8, 0xe2, 0x23, 0x72,
    0x9e, 0x0a, 0x0c, 0xec, 0x65, 0xdb, 0x7a, 0x1a, 0xf7, 0xca, 0x29, 0x05,
    0x82, 0xdd, 0x4d, 0xe0, 0x38, 0xcd, 0xf6, 0xbd, 0xfe, 0x13, 0xd9, 0x8f,
    0x6d, 0x8f, 0xdf, 0x60, 0x7a, 0x83, 0xe8, 0xe5, 0x2c, 0xb5, 0xa1, 0xbb,
    0x48, 0x1b, 0x7b, 0x53, 0x93, 0x58, 0x69, 0x7d, 0x12, 0x99, 0x6d, 0xe2,
    0x51, 0x18, 0x88, 0xe9, 0xa3, 0x7a, 0x39, 0xfd, 0x30, 0x12, 0x61, 0x20,
    0xc7, 0xc4, 0x3e, 0xe3, 0xfe, 0x7f, 0x0b, 0xc3, 0x71, 0x25, 0x7a, 0x37,
    0x21, 0x16, 0x97, 0x2b, 0x24, 0x09, 0x44, 0x8d, 0xbe, 0x47, 0xe6, 0x6d,
    0x0a, 0x9c, 0x30, 0xf8, 0x56, 0xc8, 0x42, 0xbc, 0xa8, 0xd2, 0xd7, 0x47,
    0xb4, 0x6f, 0x5a, 0xbf, 0xdd, 0xd4, 0x8f, 0xea, 0xb9, 0x44, 0xca, 0xa1,
    0x62, 0x35, 0xe9, 0x92, 0x13, 0x22, 0xb7, 0x1f, 0x1a, 0xd3, 0x26, 0xa4,
    0x8a, 0x1c, 0x19, 0x46, 0x09, 0x0a, 0xee, 0xe2, 0x93, 0x1b, 0xab, 0x1e,
    0x44, 0x32, 0x26, 0xa6, 0x64, 0x1e, 0x47, 0xa0, 0x6e, 0xce, 0x15, 0xd2,
    0x31, 0x38, 0xc4, 0xb4, 0x0e, 0x89, 0x10, 0xd6, 0xd7, 0x3d, 0x56, 0x87,
    0xed, 0x32, 0x29, 0x59, 0x8f, 0xbb, 0xab, 0x1e, 0xca, 0x25, 0xb6, 0x0d,
    0x5f, 0x6f, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x45, 0x30, 0x43, 0x30,
    0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3a, 0xd7,
    0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b, 0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4,
    0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d,
    0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02,
    0x01, 0x00, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff,
    0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0xff, 0x00, 0xff, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x8d, 0x9d, 0xe2, 0xcb, 0x55, 0x28, 0xbf, 0xa2, 0x29, 0x67,
    0x52, 0xe3, 0x47, 0x80, 0x84, 0xcd, 0x8c, 0x5c, 0xbd, 0x6b, 0x3d, 0xea,
    0xcc, 0x4b, 0xc6, 0x86, 0xb4, 0xf5, 0x5e, 0xec, 0x37, 0x6a, 0xe1, 0x53,
    0x71, 0x8d, 0xbd, 0xfa, 0xab, 0xd1, 0xa3, 0x95, 0x90, 0x54, 0x67, 0xe4,
    0x37, 0xdb, 0x10, 0xda, 0xf0, 0xdc, 0xbf, 0x1b, 0xdf, 0x25, 0x5a, 0x98,
    0x4a, 0x87, 0x02, 0x3d, 0xbd, 0x0e, 0xca, 0xe6, 0x88, 0x1e, 0x31, 0xa7,
    0x96, 0xdd, 0x74, 0x01, 0x3c, 0x74, 0x78, 0xfc, 0xab, 0xeb, 0x4b, 0x7a,
    0xbd, 0xf6, 0xcf, 0x26, 0x31, 0xf2, 0xe9, 0xbf, 0x6b, 0x44, 0x04, 0xa5,
    0x5a, 0xcd, 0x6f, 0x9a, 0x5f, 0x80, 0xe5, 0x9d, 0x05, 0xe3, 0xe3, 0x24,
    0xae, 0x04, 0x71, 0x84, 0x41, 0xbc, 0x48, 0x3c, 0xcf, 0x59, 0xf8, 0xcb,
    0xeb, 0x6e, 0xe1, 0x19, 0xb5, 0x04, 0x06, 0xd3, 0x5c, 0xe3, 0x86, 0xaa,
    0x4a, 0xed, 0x63, 0x7a, 0x6e, 0x0e, 0x35, 0x80, 0xe7, 0xd7, 0xf6, 0xac,
    0x66, 0xda, 0xdb, 0xdc, 0x20, 0x67, 0x90, 0xde, 0x13, 0x6e, 0x96, 0xde,
    0x0d, 0x42, 0x36, 0x03, 0x09, 0x88, 0x13, 0xcd, 0x0d, 0x70, 0xb3, 0xf0,
    0xdf, 0xf2, 0x7a, 0xdf, 0xa8, 0xa4, 0x34, 0x15, 0xff, 0xfc, 0x7c, 0xe8,
    0x48, 0xfb, 0x59, 0xd0, 0x4c, 0xc6, 0x27, 0xe3, 0xed, 0x8d, 0x66, 0x7d,
    0x39, 0x78, 0xa1, 0xea, 0x76, 0xc4, 0xbd, 0xca, 0xe4, 0xa1, 0xf9, 0x06,
    0x8a, 0xdd, 0xd0, 0x27, 0xdb, 0x46, 0xe2, 0x79, 0xd0, 0x0f, 0x79, 0xf2,
    0x89, 0x78, 0xc3, 0x8d, 0x76, 0x7f, 0xf3, 0xab, 0x01, 0xe1, 0x12, 0xf4,
    0x50, 0x6a, 0x2f, 0xc0, 0x75, 0x00, 0x35, 0xa7, 0x0f, 0x2b, 0x03, 0x80,
    0x04, 0x69, 0x21, 0x66, 0x2e, 0x28, 0xef, 0xc4, 0x6f, 0x19, 0x5d, 0x17,
    0x9f, 0x8c, 0xb5, 0x32, 0x3c, 0x93
};

static const UCHAR TestIntm_wrong_signature[] = {
    0x30, 0x82, 0x03, 0x62, 0x30, 0x82, 0x02, 0x4a, 0xa0, 0x03, 0x02, 0x01,
    0x02, 0x02, 0x09, 0x00, 0xb4, 0x8d, 0x51, 0x4b, 0xbb, 0x42, 0x8d, 0xff,
    0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
    0x05, 0x05, 0x00, 0x30, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
    0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
    0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06,
    0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09,
    0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x10,
    0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x07, 0x54, 0x65, 0x73,
    0x74, 0x43, 0x41, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31,
    0x31, 0x36, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a, 0x17, 0x0d, 0x31,
    0x39, 0x30, 0x34, 0x33, 0x31, 0x30, 0x32, 0x33, 0x32, 0x33, 0x33, 0x5a,
    0x30, 0x47, 0x31, 0x11, 0x30, 0x0f, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c,
    0x08, 0x54, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x74, 0x6d, 0x31, 0x0b, 0x30,
    0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
    0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
    0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
    0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
    0x4c, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
    0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f,
    0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xc8, 0xad,
    0xd6, 0xb3, 0xf3, 0xfb, 0x4c, 0x7c, 0x9c, 0xa4, 0x3a, 0x9a, 0x38, 0xc2,
    0x0e, 0x95, 0xe3, 0xda, 0xca, 0xea, 0xdf, 0x1f, 0x84, 0x2e, 0xb3, 0xae,
    0xb1, 0x78, 0x40, 0x0d, 0xeb, 0xee, 0x60, 0xf0, 0xd6, 0x27, 0x19, 0xa7,
    0x57, 0xe1, 0x54, 0x5f, 0x9f, 0x73, 0xc8, 0x00, 0x5d, 0xff, 0x53, 0xb2,
    0xda, 0x99, 0x67, 0x12, 0xe9, 0xdb, 0xa0, 0xdd, 0xb1, 0xa8, 0xcd, 0xf8,
    0x2b, 0x9b, 0x0a, 0xe6, 0x00, 0x91, 0x3e, 0xc9, 0x31, 0x72, 0xc5, 0x99,
    0x35, 0xeb, 0x84, 0x4d, 0x93, 0xda, 0xa8, 0x6b, 0xb8, 0xe2, 0x23, 0x72,
    0x9e, 0x0a, 0x0c, 0xec, 0x65, 0xdb, 0x7a, 0x1a, 0xf7, 0xca, 0x29, 0x05,
    0x82, 0xdd, 0x4d, 0xe0, 0x38, 0xcd, 0xf6, 0xbd, 0xfe, 0x13, 0xd9, 0x8f,
    0x6d, 0x8f, 0xdf, 0x60, 0x7a, 0x83, 0xe8, 0xe5, 0x2c, 0xb5, 0xa1, 0xbb,
    0x48, 0x1b, 0x7b, 0x53, 0x93, 0x58, 0x69, 0x7d, 0x12, 0x99, 0x6d, 0xe2,
    0x51, 0x18, 0x88, 0xe9, 0xa3, 0x7a, 0x39, 0xfd, 0x30, 0x12, 0x61, 0x20,
    0xc7, 0xc4, 0x3e, 0xe3, 0xfe, 0x7f, 0x0b, 0xc3, 0x71, 0x25, 0x7a, 0x37,
    0x21, 0x16, 0x97, 0x2b, 0x24, 0x09, 0x44, 0x8d, 0xbe, 0x47, 0xe6, 0x6d,
    0x0a, 0x9c, 0x30, 0xf8, 0x56, 0xc8, 0x42, 0xbc, 0xa8, 0xd2, 0xd7, 0x47,
    0xb4, 0x6f, 0x5a, 0xbf, 0xdd, 0xd4, 0x8f, 0xea, 0xb9, 0x44, 0xca, 0xa1,
    0x62, 0x35, 0xe9, 0x92, 0x13, 0x22, 0xb7, 0x1f, 0x1a, 0xd3, 0x26, 0xa4,
    0x8a, 0x1c, 0x19, 0x46, 0x09, 0x0a, 0xee, 0xe2, 0x93, 0x1b, 0xab, 0x1e,
    0x44, 0x32, 0x26, 0xa6, 0x64, 0x1e, 0x47, 0xa0, 0x6e, 0xce, 0x15, 0xd2,
    0x31, 0x38, 0xc4, 0xb4, 0x0e, 0x89, 0x10, 0xd6, 0xd7, 0x3d, 0x56, 0x87,
    0xed, 0x32, 0x29, 0x59, 0x8f, 0xbb, 0xab, 0x1e, 0xca, 0x25, 0xb6, 0x0d,
    0x5f, 0x6f, 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x45, 0x30, 0x43, 0x30,
    0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3a, 0xd7,
    0x1d, 0xe4, 0x00, 0x4e, 0x3f, 0x4b, 0x4c, 0xde, 0x94, 0x6f, 0x35, 0xe4,
    0x45, 0x67, 0xe0, 0xa6, 0xd1, 0x28, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d,
    0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02,
    0x01, 0x00, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff,
    0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86,
    0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82, 0x01,
    0x01, 0x00, 0x8d, 0x9d, 0xe2, 0xcb, 0x55, 0x28, 0xbf, 0xa2, 0x29, 0x67,
    0x52, 0xe3, 0x47, 0x80, 0x84, 0xcd, 0x8c, 0x5c, 0xbd, 0x6b, 0x3d, 0xea,
    0xcc, 0x4b, 0xc6, 0x86, 0xb4, 0xf5, 0x5e, 0xec, 0x37, 0x6a, 0xe1, 0x53,
    0x71, 0x8d, 0xbd, 0xfa, 0xab, 0xd1, 0xa3, 0x95, 0x90, 0x54, 0x67, 0xe4,
    0x37, 0xdb, 0x10, 0xda, 0xf0, 0xdc, 0xbf, 0x1b, 0xdf, 0x25, 0x5a, 0x98,
    0x4a, 0x87, 0x02, 0x3d, 0xbd, 0x0e, 0xca, 0xe6, 0x88, 0x1e, 0x31, 0xa7,
    0x96, 0xdd, 0x74, 0x01, 0x3c, 0x74, 0x78, 0xfc, 0xab, 0xeb, 0x4b, 0x7a,
    0xbd, 0xf6, 0xcf, 0x26, 0x31, 0xf2, 0xe9, 0xbf, 0x6b, 0x44, 0x04, 0xa5,
    0x5a, 0xcd, 0x6f, 0x9a, 0x5f, 0x80, 0xe5, 0x9d, 0x05, 0xe3, 0xe3, 0x24,
    0xae, 0x04, 0x71, 0x84, 0x41, 0xbc, 0x48, 0x3c, 0xcf, 0x59, 0xf8, 0xcb,
    0xeb, 0x6e, 0xe1, 0x19, 0xb5, 0x04, 0x06, 0xd3, 0x5c, 0xe3, 0x86, 0xaa,
    0x4a, 0xed, 0x63, 0x7a, 0x6e, 0x0e, 0x35, 0x80, 0xe7, 0xd7, 0xf6, 0xac,
    0x66, 0xda, 0xdb, 0xdc, 0x20, 0x67, 0x90, 0xde, 0x13, 0x6e, 0x96, 0xde,
    0x0d, 0x42, 0x36, 0x03, 0x09, 0x88, 0x13, 0xcd, 0x0d, 0x70, 0xb3, 0xf0,
    0xdf, 0xf2, 0x7a, 0xdf, 0xa8, 0xa4, 0x34, 0x15, 0xff, 0xfc, 0x7c, 0xe8,
    0x48, 0xfb, 0x59, 0xd0, 0x4c, 0xc6, 0x27, 0xe3, 0xed, 0x8d, 0x66, 0x7d,
    0x39, 0x78, 0xa1, 0xea, 0x76, 0xc4, 0xbd, 0xca, 0xe4, 0xa1, 0xf9, 0x06,
    0x8a, 0xdd, 0xd0, 0x27, 0xdb, 0x46, 0xe2, 0x79, 0xd0, 0x0f, 0x79, 0xf2,
    0x89, 0x78, 0xc3, 0x8d, 0x76, 0x7f, 0xf3, 0xab, 0x01, 0xe1, 0x12, 0xf4,
    0x50, 0x6a, 0x2f, 0xc0, 0x75, 0x00, 0x35, 0xa7, 0x0f, 0x2b, 0x03, 0x80,
    0x04, 0x69, 0x21, 0x66, 0x2e, 0x28, 0xef, 0xc4, 0x6f, 0x19, 0x5d, 0x17,
    0x9f, 0x8c, 0xb5, 0x32, 0x3c, 0x93
};


static TX_THREAD thread_0;
static NX_SECURE_TLS_SESSION   tls_session;
static CHAR crypto_metadata[16000];

static VOID thread_0_entry(ULONG thread_input);
static NX_SECURE_X509_CERT trusted_certificate;
static NX_SECURE_X509_CERT revoked_certificate;
static NX_SECURE_X509_CERT normal_certificate;
static NX_SECURE_X509_CERT revoked_certificate2;
static NX_SECURE_X509_CERT revoked_certificate3;
static NX_SECURE_X509_CERT not_trusted_intm_certificate;
static NX_SECURE_X509_CERT trusted_certificate2;


static BAD_CRL_TEST_DATA bad_crl_test_data[] =
{
    { bad_crl ,sizeof(bad_crl), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_length ,sizeof(bad_crl_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_null_tag ,sizeof(bad_crl_null_tag), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_null_tag2 ,sizeof(bad_crl_null_tag2), &revoked_certificate3, NX_SECURE_X509_INVALID_CERTIFICATE_SEQUENCE },
    { bad_crl_tbscert_tag ,sizeof(bad_crl_tbscert_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_tbscert_length ,sizeof(bad_crl_tbscert_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_tbscert_type ,sizeof(bad_crl_tbscert_type), &revoked_certificate3, NX_SECURE_X509_INVALID_CERTIFICATE_DATA },
    { bad_crl_ver_tag ,sizeof(bad_crl_ver_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_ver_length ,sizeof(bad_crl_ver_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_sig_seq_tag ,sizeof(bad_crl_sig_seq_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_sig_seq_length ,sizeof(bad_crl_sig_seq_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_sig_algorithm_bad_tag ,sizeof(bad_crl_sig_algorithm_bad_tag), &revoked_certificate3, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_sig_algorithm_bad_tlv ,sizeof(bad_crl_sig_algorithm_bad_tlv), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_sig_algorithm_bad_oid_end ,sizeof(bad_crl_sig_algorithm_bad_oid_end), &revoked_certificate3, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_issuer_bad_tag ,sizeof(bad_crl_issuer_bad_tag), &revoked_certificate3, NX_SECURE_X509_MULTIBYTE_TAG_UNSUPPORTED },
    { bad_crl_issuer_bad_length ,sizeof(bad_crl_issuer_bad_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_issuer_bad_tag2 ,sizeof(bad_crl_issuer_bad_tag2), &revoked_certificate3, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_this_update_time_bad_tlv ,sizeof(bad_crl_this_update_time_bad_tlv), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_this_update_time_bad_length ,sizeof(bad_crl_this_update_time_bad_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_this_update_time_bad_tag ,sizeof(bad_crl_this_update_time_bad_tag), &revoked_certificate3, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_next_update_time_bad_tlv ,sizeof(bad_crl_next_update_time_bad_tlv), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_next_update_time_bad_length ,sizeof(bad_crl_next_update_time_bad_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_wrong_signature_algorithm ,sizeof(bad_crl_wrong_signature_algorithm), &normal_certificate, NX_SECURE_X509_UNKNOWN_CERT_SIG_ALGORITHM },
    { bad_crl_no_next_update_time ,sizeof(bad_crl_no_next_update_time), &revoked_certificate3, NX_SECURE_X509_INVALID_CERTIFICATE_DATA },
    { bad_crl_certs_tag ,sizeof(bad_crl_certs_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_certs_length ,sizeof(bad_crl_certs_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_certs_type ,sizeof(bad_crl_certs_type), &revoked_certificate3, NX_SECURE_X509_INVALID_CERTIFICATE_DATA },
    { bad_crl_sigdata_tag ,sizeof(bad_crl_sigdata_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_sigdata_length ,sizeof(bad_crl_sigdata_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_sigdata_type ,sizeof(bad_crl_sigdata_type), &revoked_certificate3, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_signature_seq_tag ,sizeof(bad_crl_signature_seq_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_extension_tag ,sizeof(bad_crl_extension_tag), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_extension_length ,sizeof(bad_crl_extension_length), &revoked_certificate3, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_extension_type ,sizeof(bad_crl_extension_type), &revoked_certificate3, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_entry_seq_tag ,sizeof(bad_crl_entry_seq_tag), &revoked_certificate, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_entry_seq_tag2 ,sizeof(bad_crl_entry_seq_tag2), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_seq_length ,sizeof(bad_crl_entry_seq_length), &revoked_certificate, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_entry_seq_type ,sizeof(bad_crl_entry_seq_type), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_seq_type2 ,sizeof(bad_crl_entry_seq_type2), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_serial_tag ,sizeof(bad_crl_entry_serial_tag), &revoked_certificate, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_entry_serial_length ,sizeof(bad_crl_entry_serial_length), &revoked_certificate, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_entry_serial_type ,sizeof(bad_crl_entry_serial_type), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_revocation_date_tag ,sizeof(bad_crl_entry_revocation_date_tag), &revoked_certificate, NX_SECURE_X509_INVALID_TAG_CLASS },
    { bad_crl_entry_revocation_date_length ,sizeof(bad_crl_entry_revocation_date_length), &revoked_certificate, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_crl_entry_revocation_date_type ,sizeof(bad_crl_entry_revocation_date_type), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_revocation_date_type2 ,sizeof(bad_crl_entry_revocation_date_type2), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_revocation_date_type3 ,sizeof(bad_crl_entry_revocation_date_type3), &revoked_certificate, NX_SECURE_X509_UNEXPECTED_ASN1_TAG },
    { bad_crl_entry_length ,sizeof(bad_crl_entry_length), &revoked_certificate, NX_SECURE_X509_ASN1_LENGTH_TOO_LONG },
    { bad_signature_padding_type ,sizeof(bad_signature_padding_type), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_all_padding ,sizeof(bad_signature_all_padding), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_seq_tag ,sizeof(bad_signature_seq_tag), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_oid_seq_tag ,sizeof(bad_signature_oid_seq_tag), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_oid_tag ,sizeof(bad_signature_oid_tag), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_octstr_tag ,sizeof(bad_signature_octstr_tag), &revoked_certificate, NX_SECURE_X509_PKCS7_PARSING_FAILED },
    { bad_signature_hash_length ,sizeof(bad_signature_hash_length), &revoked_certificate, NX_SECURE_X509_WRONG_SIGNATURE_METHOD },

};

/*  Cryptographic routines. */
extern const NX_SECURE_TLS_CRYPTO nx_crypto_tls_ciphers;

#ifdef CTEST
void test_application_define(void *first_unused_memory);
void test_application_define(void *first_unused_memory)
#else
void nx_secure_x509_crl_test_application_define(void *first_unused_memory)
#endif
{
    tx_thread_create(&thread_0, "Thread 0", thread_0_entry, 0,
        first_unused_memory, 4096,
        16, 16, 4, TX_AUTO_START);
}

static VOID thread_0_entry(ULONG thread_input)
{
UINT i;
UINT status;
NX_SECURE_X509_CERTIFICATE_STORE *store;

    /* Print out test information banner.  */
    printf("NetX Secure Test:   X509 CRL test......................................");

    /* Create a TLS session.  */
    status =  nx_secure_tls_session_create(&tls_session,
                                           &nx_crypto_tls_ciphers,
                                           crypto_metadata,
                                           sizeof(crypto_metadata));
    EXPECT_EQ(NX_SUCCESS, status);


    /* Initialize our trusted certificate structure. */
    status = nx_secure_x509_certificate_initialize(&trusted_certificate, (UCHAR*)TestCA_der, sizeof(TestCA_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_trusted_certificate_add(&tls_session, &trusted_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    store = &tls_session.nx_secure_tls_credentials.nx_secure_tls_certificate_store;

    /* Test crl revocation check with revoked certificate. */
    status = nx_secure_x509_certificate_initialize(&revoked_certificate, (UCHAR*)domain_com_der, sizeof(domain_com_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &revoked_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestCA_crl, sizeof(TestCA_crl), store, &revoked_certificate);
    EXPECT_EQ(NX_SECURE_X509_CRL_CERTIFICATE_REVOKED, status);

    /* Test crl revocation check with normal certificate. */
    status = nx_secure_x509_certificate_initialize(&normal_certificate, (UCHAR*)example_com_der, sizeof(example_com_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &normal_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestCA_crl, sizeof(TestCA_crl), store, &normal_certificate);
    EXPECT_EQ(NX_SUCCESS, status);


    /* Test crl revocation check with issuer not in the certificate store. */
    status = nx_secure_x509_certificate_initialize(&revoked_certificate2, (UCHAR*)example2_com_der, sizeof(example2_com_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_trusted_certificate_add(&tls_session, &revoked_certificate2);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestCA2_crl, sizeof(TestCA2_crl), store, &revoked_certificate2);
    EXPECT_EQ(NX_SECURE_X509_CERTIFICATE_NOT_FOUND, status);


    /* Test crl revocation check with crl from another CA. */
    status = nx_secure_x509_crl_revocation_check(TestCA2_crl, sizeof(TestCA2_crl), store, &normal_certificate);
    EXPECT_EQ(NX_SECURE_X509_CRL_ISSUER_MISMATCH, status);


    /* Test with issuer's CA not in the trusted store. */
    status = nx_secure_x509_certificate_initialize(&not_trusted_intm_certificate, (UCHAR*)TestIntm_der, sizeof(TestIntm_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &not_trusted_intm_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_certificate_initialize(&revoked_certificate3, (UCHAR*)TestCrt_der, sizeof(TestCrt_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &revoked_certificate3);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestIntm_crl, sizeof(TestIntm_crl), store, &revoked_certificate3);
    EXPECT_EQ(NX_SECURE_X509_ISSUER_CERTIFICATE_NOT_FOUND, status);


    /* Test with wrong signature of issuer's certificate. */

    status = nx_secure_x509_certificate_initialize(&trusted_certificate2, (UCHAR*)TestCA2_der, sizeof(TestCA2_der), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_trusted_certificate_add(&tls_session, &trusted_certificate2);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_remove(&tls_session, CN_TESTINTM, strlen(CN_TESTINTM));
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_certificate_initialize(&not_trusted_intm_certificate, (UCHAR*)cert_signature_seq_type, sizeof(cert_signature_seq_type), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &not_trusted_intm_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestIntm_crl, sizeof(TestIntm_crl), store, &revoked_certificate3);
    EXPECT_EQ(NX_SECURE_X509_PKCS7_PARSING_FAILED, status);


    status = nx_secure_tls_local_certificate_remove(&tls_session, CN_TESTINTM, strlen(CN_TESTINTM));
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_certificate_initialize(&not_trusted_intm_certificate, (UCHAR*)cert_signature_hash_length, sizeof(cert_signature_hash_length), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &not_trusted_intm_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestIntm_crl, sizeof(TestIntm_crl), store, &revoked_certificate3);
    EXPECT_EQ(NX_SECURE_X509_WRONG_SIGNATURE_METHOD, status);


    status = nx_secure_tls_local_certificate_remove(&tls_session, CN_TESTINTM, strlen(CN_TESTINTM));
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_certificate_initialize(&not_trusted_intm_certificate, (UCHAR*)TestIntm_wrong_signature_alg, sizeof(TestIntm_wrong_signature_alg), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &not_trusted_intm_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestIntm_crl, sizeof(TestIntm_crl), store, &revoked_certificate3);
    EXPECT_EQ(NX_SECURE_X509_UNKNOWN_CERT_SIG_ALGORITHM, status);


    status = nx_secure_tls_local_certificate_remove(&tls_session, CN_TESTINTM, strlen(CN_TESTINTM));
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_certificate_initialize(&not_trusted_intm_certificate, (UCHAR*)TestIntm_wrong_signature, sizeof(TestIntm_wrong_signature), NX_NULL, 0, NX_NULL, 0, NX_SECURE_X509_KEY_TYPE_NONE);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_tls_local_certificate_add(&tls_session, &not_trusted_intm_certificate);
    EXPECT_EQ(NX_SUCCESS, status);

    status = nx_secure_x509_crl_revocation_check(TestIntm_crl, sizeof(TestIntm_crl), store, &revoked_certificate3);
    EXPECT_EQ(NX_SECURE_X509_CERTIFICATE_SIG_CHECK_FAILED, status);



    /* Test with bad crl. */
    for (i = 0; i < sizeof(bad_crl_test_data) / sizeof(BAD_CRL_TEST_DATA); i++)
    {
        status = nx_secure_x509_crl_revocation_check(bad_crl_test_data[i].crl_data, bad_crl_test_data[i].crl_data_length,
                                                     store, bad_crl_test_data[i].test_cert);
        EXPECT_EQ(bad_crl_test_data[i].expected_status, status);

    }



    status = nx_secure_tls_session_delete(&tls_session);
    EXPECT_EQ(NX_SUCCESS, status);

    printf("SUCCESS!\n");
    test_control_return(0);

}
#else
#ifdef CTEST
void test_application_define(void *first_unused_memory);
void test_application_define(void *first_unused_memory)
#else
void nx_secure_x509_crl_test_application_define(void *first_unused_memory)
#endif
{

    /* Print out test information banner.  */
    printf("NetX Secure Test:   X509 CRL test......................................N/A\n");
    test_control_return(3);
}
#endif
